Skip to content

Commit a6725b1

Browse files
committed
Add title for buttons (Sidebar, Settings)
1 parent 1bc18b2 commit a6725b1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/AppSidebar.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ useKey('esc', handleBack, { source: () => store.currentPage === Page.Settings })
2727
<nav class="nav">
2828
<div class="upper">
2929
<SidebarButton
30+
title="Back to home page"
3031
:disabled="store.currentPage !== Page.Settings"
3132
@click="handleBack"
3233
>
@@ -35,13 +36,17 @@ useKey('esc', handleBack, { source: () => store.currentPage === Page.Settings })
3536
</div>
3637
<div class="lower">
3738
<SidebarButton
38-
v-if="accessToken != null"
39+
v-if="store.currentPage === Page.Home"
40+
title="Reload notifications"
3941
@click="store.fetchNotifications(true)"
4042
>
4143
<Icons.Sync16 :class="{ 'sync-icon-spin': store.loadingNotifications }" />
4244
</SidebarButton>
4345

44-
<SidebarButton @click="store.setPage(Page.Settings)">
46+
<SidebarButton
47+
title="Go to settings"
48+
@click="store.setPage(Page.Settings)"
49+
>
4550
<Icons.Gear16 />
4651
</SidebarButton>
4752
</div>

src/pages/SettingsPage.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ watch(soundsEnabled, (enabled) => {
5353

5454
<div class="settings-footer">
5555
<AppButton
56+
title="Open Gitification repository"
5657
class="github-button"
5758
@click="open(REPO_LINK)"
5859
>

0 commit comments

Comments
 (0)