Notifications when sub/unsub in video view page

This commit is contained in:
Karlis Cudars 2021-10-31 00:49:25 +03:00
parent 518a990910
commit e6d1144b3e

View file

@ -325,6 +325,18 @@ export default {
}, },
}); });
this.subscribed = !this.subscribed; 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() { handleScroll() {
if (this.loading || !this.comments || !this.comments.nextpage) return; if (this.loading || !this.comments || !this.comments.nextpage) return;