Skip to content

Commit

Permalink
refactor(UI): change query tab buttons order
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Apr 12, 2024
1 parent f4f3855 commit 33203ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
53 changes: 27 additions & 26 deletions src/renderer/components/WorkspaceTabQuery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,32 +97,6 @@
>
<BaseIcon icon-name="mdiBrush" :size="24" />
</button>
<button
class="btn btn-dark btn-sm"
:disabled="isQuering"
:title="t('general.history')"
@click="openHistoryModal()"
>
<BaseIcon icon-name="mdiHistory" :size="24" />
</button>
<div class="btn-group">
<button
class="btn btn-dark btn-sm mr-0"
:disabled="isQuering || (isQuerySaved || query.length < 5)"
:title="t('general.save')"
@click="saveQuery()"
>
<BaseIcon icon-name="mdiHeartPlusOutline" :size="24" />
</button>
<button
class="btn btn-dark btn-sm"
:disabled="isQuering"
:title="t('database.savedQueries')"
@click="openSavedModal()"
>
<BaseIcon icon-name="mdiNotebookHeartOutline" :size="24" />
</button>
</div>
<div class="btn-group">
<button
class="btn btn-dark btn-sm mr-0"
Expand All @@ -147,6 +121,32 @@
<BaseIcon icon-name="mdiFolderOpenOutline" :size="24" />
</button>
</div>
<div class="btn-group">
<button
class="btn btn-dark btn-sm mr-0"
:disabled="isQuering || (isQuerySaved || query.length < 5)"
:title="t('application.saveAsNote')"
@click="saveQuery()"
>
<BaseIcon icon-name="mdiHeartPlusOutline" :size="24" />
</button>
<button
class="btn btn-dark btn-sm"
:disabled="isQuering"
:title="t('database.savedQueries')"
@click="openSavedModal()"
>
<BaseIcon icon-name="mdiNotebookHeartOutline" :size="24" />
</button>
</div>
<button
class="btn btn-dark btn-sm"
:disabled="isQuering"
:title="t('general.history')"
@click="openHistoryModal()"
>
<BaseIcon icon-name="mdiHistory" :size="24" />
</button>
<div class="dropdown table-dropdown pr-2">
<button
:disabled="!hasResults || isQuering"
Expand Down Expand Up @@ -731,6 +731,7 @@ const openFile = async () => {
filePath.value = file;
queryName.value = fileName;
query.value = content;
lastSavedQuery.value = content;
}
}
};
Expand Down
1 change: 1 addition & 0 deletions src/renderer/i18n/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ export const enUS = {
thereAreNoNotesYet: 'There are no notes yet',
addNote: 'Add note',
editNote: 'Edit note',
saveAsNote: 'Save as note',
showArchivedNotes: 'Show archived notes',
hideArchivedNotes: 'Hide archived notes',
tag: 'Tag', // Note tag,
Expand Down

0 comments on commit 33203ae

Please sign in to comment.