File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,15 @@ const store = useStore()
24
24
</div >
25
25
<div class =" lower" >
26
26
<SidebarButton
27
- v-if =" store.currentPage = == Page.Home"
27
+ :disabled =" store.currentPage ! == Page.Home"
28
28
title =" Reload notifications"
29
29
@click =" store.fetchNotifications(true)"
30
30
>
31
31
<Icons .Sync16 :class =" { 'sync-icon-spin': store.loadingNotifications }" />
32
32
</SidebarButton >
33
33
34
34
<SidebarButton
35
+ :disabled =" store.currentPage === Page.Settings"
35
36
title =" Go to settings"
36
37
@click =" store.setPage(Page.Settings)"
37
38
>
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ interface Props {
3
3
disabled? : boolean
4
4
}
5
5
6
- const props = withDefaults (defineProps <Props >(), {
7
- disabled: false ,
8
- })
6
+ withDefaults (defineProps <Props >(), { disabled: false })
9
7
</script >
10
8
11
9
<template >
You can’t perform that action at this time.
0 commit comments