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/wizard/components/wizard-no-access.js.es6
2022-06-15 08:03:38 +02:00

25 Zeilen
620 B
JavaScript

import CustomWizard from "../models/wizard";
import discourseComputed from "discourse-common/utils/decorators";
import Component from "@ember/component";
import { dasherize } from "@ember/string";
export default Component.extend({
classNameBindings: [':wizard-no-access', 'reasonClass'],
layoutName: 'wizard/templates/components/wizard-no-access',
@discourseComputed('reason')
reasonClass(reason) {
return dasherize(reason);
},
@discourseComputed
siteName() {
return (this.siteSettings.title || '');
},
actions: {
skip() {
CustomWizard.skip(this.get("wizardId"));
},
},
});