0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 13:52:54 +01:00
discourse-custom-wizard/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6

35 Zeilen
703 B
Text

2020-05-28 03:26:39 +02:00
import Controller from "@ember/controller";
import { default as discourseComputed } from "discourse-common/utils/decorators";
2020-04-15 02:46:44 +02:00
2020-05-28 03:26:39 +02:00
export default Controller.extend({
documentationUrl: "https://thepavilion.io/t/2818",
@discourseComputed("wizardId")
wizardName(wizardId) {
let currentWizard = this.wizardList.find(
(wizard) => wizard.id === wizardId
);
if (currentWizard) {
return currentWizard.name;
2021-04-12 08:12:20 +02:00
}
2020-04-15 02:46:44 +02:00
},
@discourseComputed("wizardName")
messageOpts(wizardName) {
return {
wizardName,
};
2020-04-15 02:46:44 +02:00
},
@discourseComputed("wizardId")
messageKey(wizardId) {
let key = "select";
if (wizardId) {
key = "viewing";
}
return key;
},
});