Improved group join and leave

This commit is contained in:
2018-11-22 11:13:39 +09:00
parent deba81e11f
commit da08f80247
4 changed files with 11 additions and 6 deletions

View File

@ -2,6 +2,10 @@ import AnimeNotifier from "scripts/AnimeNotifier"
// join
export async function join(arn: AnimeNotifier, element: HTMLElement) {
if(!confirm(`Are you sure you want to join this group?`)) {
return
}
arn.statusMessage.showInfo("Joined group!", 1000)
let apiEndpoint = arn.findAPIEndpoint(element)
@ -15,7 +19,7 @@ export async function join(arn: AnimeNotifier, element: HTMLElement) {
// leave
export async function leave(arn: AnimeNotifier, element: HTMLElement) {
if(!confirm(`Are you sure you want to leave the group?`)) {
if(!confirm(`Are you sure you want to leave this group?`)) {
return
}