Skip to content

Commit

Permalink
fix(UI): not disabled buttons during save table setting tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jul 22, 2021
1 parent 77c5d28 commit a0105cf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/renderer/components/WorkspacePropsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<span>{{ $t('word.save') }}</span>
</button>
<button
:disabled="!isChanged"
:disabled="!isChanged || isSaving"
class="btn btn-link btn-sm mr-0"
:title="$t('message.clearChanges')"
@click="clearChanges"
Expand All @@ -26,6 +26,7 @@
<div class="divider-vert py-3" />

<button
:disabled="isSaving"
class="btn btn-dark btn-sm"
:title="$t('message.addNewField')"
@click="addField"
Expand All @@ -34,18 +35,27 @@
<span>{{ $t('word.add') }}</span>
</button>
<button
:disabled="isSaving"
class="btn btn-dark btn-sm"
:title="$t('message.manageIndexes')"
@click="showIntdexesModal"
>
<i class="mdi mdi-24px mdi-key mdi-rotate-45 mr-1" />
<span>{{ $t('word.indexes') }}</span>
</button>
<button class="btn btn-dark btn-sm" @click="showForeignModal">
<button
class="btn btn-dark btn-sm"
:disabled="isSaving"
@click="showForeignModal"
>
<i class="mdi mdi-24px mdi-key-link mr-1" />
<span>{{ $t('word.foreignKeys') }}</span>
</button>
<button class="btn btn-dark btn-sm" @click="showOptionsModal">
<button
class="btn btn-dark btn-sm"
:disabled="isSaving"
@click="showOptionsModal"
>
<i class="mdi mdi-24px mdi-cogs mr-1" />
<span>{{ $t('word.options') }}</span>
</button>
Expand Down

0 comments on commit a0105cf

Please sign in to comment.