Skip to content

Commit 9d2eb16

Browse files
committed
add notification when downloading the app
1 parent e8207ad commit 9d2eb16

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

web/components/MessageThread.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,16 @@
4646
<p>
4747
Install the mobile app on your android phone to start sending messages
4848
</p>
49-
<v-btn class="primary" :href="$store.getters.getAppData.appDownloadUrl">
49+
<v-btn
50+
class="primary"
51+
:href="$store.getters.getAppData.appDownloadUrl"
52+
@click="
53+
$store.dispatch('addNotification', {
54+
type: 'info',
55+
message: 'Downloading the httpSMS Android App',
56+
})
57+
"
58+
>
5059
<v-icon>
5160
{{ mdiDownload }}
5261
</v-icon>

web/components/MessageThreadHeader.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@
129129
v-if="$store.getters.getOwner"
130130
:href="$store.getters.getAppData.appDownloadUrl"
131131
exact
132+
@click="
133+
$store.dispatch('addNotification', {
134+
type: 'info',
135+
message: 'Downloading the httpSMS Android App',
136+
})
137+
"
132138
>
133139
<v-list-item-icon class="pl-2">
134140
<v-icon dense>{{ mdiDownload }}</v-icon>

web/layouts/website.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
</v-container>
6767
</v-app-bar>
6868
<v-main>
69+
<toast></toast>
6970
<Nuxt />
7071
</v-main>
7172
<v-footer class="pt-4">

web/pages/index.vue

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@
212212
download
213213
class="font-weight-bold text-decoration-none"
214214
:href="$store.getters.getAppData.appDownloadUrl"
215+
@click="
216+
$store.dispatch('addNotification', {
217+
type: 'info',
218+
message: 'Downloading the httpSMS Android App',
219+
})
220+
"
215221
>Download</a
216222
>
217223
and install the companion android application on your
@@ -610,15 +616,6 @@ export default Vue.extend({
610616
yearlyPricing: false,
611617
}
612618
},
613-
methods: {
614-
goToPricing() {
615-
if (this.$route.name === 'index') {
616-
this.$vuetify.goTo('#pricing')
617-
} else {
618-
this.$router.push('/#pricing')
619-
}
620-
},
621-
},
622619
})
623620
</script>
624621

0 commit comments

Comments
 (0)