0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00
Dieser Commit ist enthalten in:
merefield 2023-09-24 12:16:41 +01:00
Ursprung 15f596e8ec
Commit 56181f65f4
2 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -5,11 +5,13 @@ import I18n from "I18n";
export default class AdminWizardsColumnComponent extends Component { export default class AdminWizardsColumnComponent extends Component {
title = I18n.t("admin.wizard.edit_columns"); title = I18n.t("admin.wizard.edit_columns");
@action save() { @action
save() {
this.args.closeModal(); this.args.closeModal();
} }
@action resetToDefault() { @action
resetToDefault() {
this.args.model.reset(); this.args.model.reset();
} }
} }

Datei anzeigen

@ -18,13 +18,15 @@ export default class NextSessionScheduledComponent extends Component {
return moment().isAfter(this.bufferedDateTime); return moment().isAfter(this.bufferedDateTime);
} }
@action submit() { @action
submit() {
const dateTime = this.bufferedDateTime; const dateTime = this.bufferedDateTime;
this.args.model.update(moment(dateTime).utc().toISOString()); this.args.model.update(moment(dateTime).utc().toISOString());
this.args.closeModal(); this.args.closeModal();
} }
@action dateTimeChanged(dateTime) { @action
dateTimeChanged(dateTime) {
this.bufferedDateTime = dateTime; this.bufferedDateTime = dateTime;
} }
} }