mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Notifications when sub/unsub in video view page
This commit is contained in:
parent
518a990910
commit
e6d1144b3e
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue