Skip to content

Commit

Permalink
feat: update wording
Browse files Browse the repository at this point in the history
  • Loading branch information
gion-andri committed Mar 13, 2024
1 parent d8fd572 commit f80aa37
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 16 deletions.
30 changes: 22 additions & 8 deletions src/app/user-area/pages/new-event/new-event.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,17 @@ export class NewEventComponent implements OnInit {
event.id = this.eventToChange.id;
this.eventsService.updateEvent(event).subscribe({
next: (event: EventDto) => {
this.notificationsService.successMessage(
'Creà l\'occurrenza',
"Ti has memorisà cun success l'occurrenza «" + event.title + "»."
);
if (isDraft) {
this.notificationsService.successMessage(
'Actualisà il sboz',
"Ti has memorisà cun success in sboz per l’occurrenza «" + event.title + "»."
);
} else {
this.notificationsService.successMessage(
'Grazia fitg',
"La redacziun controllescha ussa l’occurrenza «" + event.title + "». Quai po cuzzar in amen."
);
}

if (this.returnToModeratorView) {
this.router.navigateByUrl('/moderator/events');
Expand All @@ -125,10 +132,17 @@ export class NewEventComponent implements OnInit {
} else {
this.eventsService.createEvent(event).subscribe({
next: event => {
this.notificationsService.successMessage(
'Creà l\'occurrenza',
"Ti has memorisà cun success l'occurrenza «" + event.title + "»."
);
if (isDraft) {
this.notificationsService.successMessage(
'Creà il sboz',
"Ti has memorisà cun success in sboz per l’occurrenza «" + event.title + "»."
);
} else {
this.notificationsService.successMessage(
'Grazia fitg',
"La redacziun controllescha ussa l’occurrenza «" + event.title + "». Quai po cuzzar in amen."
);
}

if (this.isLoggedIn) {
if (this.returnToModeratorView) {
Expand Down
30 changes: 22 additions & 8 deletions src/app/user-area/pages/new-notice/new-notice.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,17 @@ export class NewNoticeComponent {
notice.id = this.noticeToChange.id;
this.noticesService.updateNotice(notice).subscribe({
next: (notice: NoticeBoardItemDto) => {
this.notificationsService.successMessage(
'Creà l’annunzia',
"Ti has memorisà cun success l’annunzia «" + notice.title + "»."
);
if (isDraft) {
this.notificationsService.successMessage(
'Actualisà il sboz',
"Ti has memorisà cun success in sboz per l’annunzia «" + notice.title + "»."
);
} else {
this.notificationsService.successMessage(
'Grazia fitg',
"La redacziun controllescha ussa l’annunzia «" + notice.title + "». Quai po cuzzar in amen."
);
}

if (this.returnToModeratorView) {
this.router.navigateByUrl('/moderator/notices');
Expand All @@ -112,10 +119,17 @@ export class NewNoticeComponent {
} else {
this.noticesService.createNotice(notice).subscribe({
next: (notice: NoticeBoardItemDto) => {
this.notificationsService.successMessage(
'Creà l’annunzia',
"Ti has memorisà cun success l’annunzia «" + notice.title + "»."
);
if (isDraft) {
this.notificationsService.successMessage(
'Creà il sboz',
"Ti has memorisà cun success in sboz per l’annunzia «" + notice.title + "»."
);
} else {
this.notificationsService.successMessage(
'Grazia fitg',
"La redacziun controllescha ussa l’annunzia «" + notice.title + "». Quai po cuzzar in amen."
);
}

if (this.isLoggedIn) {
if (this.returnToModeratorView) {
Expand Down

0 comments on commit f80aa37

Please sign in to comment.