Skip to content

Commit

Permalink
feat update push
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan88 committed Jan 13, 2024
1 parent 92f53f1 commit 3ac02e8
Showing 1 changed file with 81 additions and 11 deletions.
92 changes: 81 additions & 11 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -612,43 +612,113 @@ export class AppComponent implements OnInit {
notification.data.type &&
notification.data.type === "helferEvent"
) {
this.router.navigateByUrl("/t/helfer", { state: notification.data });
// "clubId": clubId,
// "id": helferEvent.data().id,
Dialog.confirm({
title: notification.title,
message: notification.body,
okButtonTitle: "Öffnen",
cancelButtonTitle: "Abbrechen",
}).then((boolean) => {
if (boolean) {
this.router.navigateByUrl("/t/helfer", {
state: notification.data,
});
}
});
} else if (
notification.data.type &&
notification.data.type === "clubEvent"
) {
this.router.navigateByUrl("/t/events", { state: notification.data });
// "clubId": clubId,
// "id": clubEventRef.data().id,
Dialog.confirm({
title: notification.title,
message: notification.body,
okButtonTitle: "Öffnen",
cancelButtonTitle: "Abbrechen",
}).then((boolean) => {
if (boolean) {
this.router.navigateByUrl("/t/events", {
state: notification.data,
});
}
});
} else if (
notification.data.type &&
notification.data.type === "clubRequest"
) {
Dialog.confirm({
title: notification.title,
message: notification.body,
okButtonTitle: "OK",
okButtonTitle: "Öffnen",
cancelButtonTitle: "Abbrechen",
}).then((boolean) => {
if (boolean) {
}
});
} else if (
notification.data.type &&
notification.data.type === "clubRequestAdmin"
) {
// "clubId": clubId,
// "id": clubId,
Dialog.confirm({
title: notification.title,
message: notification.body,
okButtonTitle: "Öffnen",
cancelButtonTitle: "Abbrechen",
}).then((boolean) => {
if (boolean) {
}
});
} else if (
notification.data.type &&
notification.data.type === "news"
) {
this.router.navigateByUrl("/t/news", { state: notification.data });
Dialog.confirm({
title: notification.title,
message: notification.body,
okButtonTitle: "Öffnen",
cancelButtonTitle: "Abbrechen",
}).then((boolean) => {
if (boolean) {
this.router.navigateByUrl("/t/news", {
state: notification.data,
});
}
});
// "id": newsRef.data().id,
} else if (
notification.data.type &&
notification.data.type === "clubNews"
) {
this.router.navigateByUrl("/t/news", { state: notification.data });
Dialog.confirm({
title: notification.title,
message: notification.body,
okButtonTitle: "Öffnen",
cancelButtonTitle: "Abbrechen",
}).then((boolean) => {
if (boolean) {
this.router.navigateByUrl("/t/news", {
state: notification.data,
});
}
});
// "clubId": clubId,
// "id": clubNewsRef.data().id,
} else if (
notification.data.type &&
notification.data.type === "training"
) {
Dialog.confirm({
title: notification.title,
message: notification.body,
okButtonTitle: "Öffnen",
cancelButtonTitle: "Abbrechen",
}).then((boolean) => {
if (boolean) {
this.router.navigateByUrl("/t/training", {
state: notification.data,
});
}
});
// "clubId": clubId,
// "teamId": teamId,
// "id": clubNewsRef.data().id,
} else {
Dialog.confirm({
Expand Down

0 comments on commit 3ac02e8

Please sign in to comment.