Skip to content

Commit

Permalink
fix(UI): update notification indicator moves settings icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Sep 2, 2023
1 parent 661043b commit e6f45d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/renderer/components/TheSettingBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@
class="settingbar-element btn btn-link"
@click="showSettingModal('general')"
>
<i
class="settingbar-element-icon mdi mdi-24px mdi-cog text-light"
:class="{ ' badge badge-update': hasUpdates }"
/>
<div class="settingbar-element-icon-wrapper">
<i
class="settingbar-element-icon mdi mdi-24px mdi-cog text-light"
:class="{ ' badge badge-update': hasUpdates }"
/>
</div>
</li>
</ul>
</div>
Expand Down Expand Up @@ -239,7 +241,7 @@ if (!connectionsArr.value.length)
border-radius: $border-radius;
}
.settingbar-element-icon-wrapper{
.settingbar-element-icon-wrapper {
display: flex;
flex-direction: column;
align-items: center;
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/stores/application.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Ace } from 'ace-builds';
import * as Store from 'electron-store';
import { defineStore } from 'pinia';

const persistentStore = new Store({ name: 'settings' });
export type UpdateStatus = 'noupdate' | 'available' | 'checking' | 'nocheck' | 'downloading' | 'downloaded' | 'disabled';

export const useApplicationStore = defineStore('application', {
state: () => ({
Expand All @@ -14,7 +16,7 @@ export const useApplicationStore = defineStore('application', {
isScratchpad: false,
selectedSettingTab: 'general',
selectedConection: {},
updateStatus: 'noupdate', // 'noupdate' | 'available' | 'checking' | 'nocheck' | 'downloading' | 'downloaded' | 'disabled'
updateStatus: 'noupdate' as UpdateStatus,
downloadProgress: 0,
baseCompleter: [] as Ace.Completer[] // Needed to reset ace editor, due global-only ace completer
}),
Expand Down

0 comments on commit e6f45d7

Please sign in to comment.