0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/custom-wizard-no-access.js.es6

25 Zeilen
563 B
Text

2022-07-27 12:47:50 +02:00
import CustomWizard from "../models/custom-wizard";
2022-03-16 12:33:34 +01:00
import discourseComputed from "discourse-common/utils/decorators";
import Component from "@ember/component";
import { dasherize } from "@ember/string";
2022-03-16 12:33:34 +01:00
export default Component.extend({
2022-06-15 08:59:09 +02:00
classNameBindings: [":wizard-no-access", "reasonClass"],
2022-03-16 12:33:34 +01:00
2022-06-15 08:59:09 +02:00
@discourseComputed("reason")
2022-03-16 12:33:34 +01:00
reasonClass(reason) {
return dasherize(reason);
},
@discourseComputed
siteName() {
2022-06-15 08:59:09 +02:00
return this.siteSettings.title || "";
2022-03-16 12:33:34 +01:00
},
actions: {
skip() {
CustomWizard.skip(this.get("wizardId"));
},
},
2019-06-19 07:39:39 +02:00
});