#328450 Change message for after event creation.
This commit is contained in:
Родитель
6d136f3845
Коммит
fcd29abb7b
|
@ -67,7 +67,7 @@ export class AddEventComponent {
|
|||
})
|
||||
.then((data) => {
|
||||
let group: Group = data[0];
|
||||
let ctx: any = { groupName: group.Name };
|
||||
let ctx: any = { groupName: group.Name, openForRegistration: this.newEvent.OpenForRegistration };
|
||||
return this._alertService.showModal(ctx, this._vcRef, EventCreationModalComponent);
|
||||
})
|
||||
.then(() => {
|
||||
|
|
|
@ -10,9 +10,11 @@ import { constants } from '../../shared';
|
|||
})
|
||||
export class EventCreationModalComponent {
|
||||
groupName: string;
|
||||
openForRegistration: boolean = true;
|
||||
|
||||
constructor(private _params: ModalDialogParams) {
|
||||
this.groupName = this._params.context.groupName;
|
||||
this.openForRegistration = !!this._params.context.openForRegistration;
|
||||
|
||||
setTimeout(() => {
|
||||
this._params.closeCallback(true);
|
||||
|
@ -20,6 +22,10 @@ export class EventCreationModalComponent {
|
|||
}
|
||||
|
||||
getText() {
|
||||
return `Your friends from ${this.groupName} will be notified for this event.`;
|
||||
let msg = `Your friends from ${this.groupName} will be notified for this event`;
|
||||
if (!this.openForRegistration) {
|
||||
msg += ` when you open it for registration`;
|
||||
}
|
||||
return msg + '.';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ export class EventListComponent implements OnInit {
|
|||
if (days > 0) {
|
||||
return days + ' days left';
|
||||
} else if (days < 0) {
|
||||
return Math.abs(days) + ' Days ago';
|
||||
return Math.abs(days) + ' days ago';
|
||||
} else {
|
||||
return 'TODAY';
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче