diff --git a/src/components/DrawerGit.vue b/src/components/DrawerGit.vue index b5ea86b..9431aa5 100644 --- a/src/components/DrawerGit.vue +++ b/src/components/DrawerGit.vue @@ -45,6 +45,19 @@ @click='gitSettings' ) q-tooltip Git Settings + .drawer-git-setupwarn.q-mt-sm(v-if='isGitSetupIncomplete') + q-icon.q-mr-sm.animated.fadeIn.slower.infinite(name='mdi-alert') + span.text-orange-3 Git configuration is incomplete! + q-space + q-btn( + outline + color='dark-4' + size='sm' + label='Fix Now' + padding='xs sm' + text-color='orange-4' + @click='gitSettings' + ) template(v-if='!editorStore.isGitRepo') q-btn.full-width.q-mt-sm( icon='mdi-cloud-download' @@ -63,7 +76,7 @@ @click='initRepo' ) template(v-else) - .drawer-git-remote.q-mt-sm + .drawer-git-remote.q-mt-sm(v-if='hasGitRemotes') q-icon.q-mr-sm(name='mdi-satellite-uplink') span.text-grey-4 Remote: #[strong.text-white {{ editorStore.gitCurrentRemote }}] q-space @@ -74,6 +87,7 @@ padding='xs xs' text-color='grey-5' :loading='state.pullLoading' + :disable='!hasGitRemotes' ) q-tooltip Pull... q-menu(auto-close) @@ -103,6 +117,7 @@ padding='xs xs' text-color='grey-5' :loading='state.pushLoading' + :disable='!hasGitRemotes' ) q-tooltip Push... q-menu(auto-close) @@ -128,6 +143,19 @@ @click='manageRemotes' ) q-tooltip Manage Remotes + .drawer-git-setupwarn.q-mt-sm(v-else) + q-icon.q-mr-sm(name='mdi-satellite-uplink') + span.text-orange-3 No remote configured! + q-space + q-btn( + outline + color='dark-4' + size='sm' + label='Manage' + padding='xs sm' + text-color='orange-4' + @click='manageRemotes' + ) .drawer-git-branch.q-mt-sm q-icon.q-mr-sm(name='mdi-source-branch') span.text-grey-4 Branch: #[strong.text-white {{ editorStore.gitCurrentBranch }}] @@ -320,7 +348,7 @@