From e6d1144b3ea0eee9371c835cd4381ddb993ac26d Mon Sep 17 00:00:00 2001 From: Karlis Cudars Date: Sun, 31 Oct 2021 00:49:25 +0300 Subject: [PATCH] Notifications when sub/unsub in video view page --- src/components/WatchVideo.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 333b7e49..58639680 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -325,6 +325,18 @@ export default { }, }); this.subscribed = !this.subscribed; + + var notifText; + if (this.subscribed) { + notifText = this.$t("notifications.notif_subscribe"); + } else { + notifText = this.$t("notifications.notif_unsubscribe"); + } + + this.$notify({ + text: notifText, + type: "success", + }); }, handleScroll() { if (this.loading || !this.comments || !this.comments.nextpage) return;