2022-03-16 12:33:34 +01:00
|
|
|
import CustomWizard from "../models/wizard";
|
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
|
|
import Component from "@ember/component";
|
|
|
|
import { dasherize } from "@ember/string";
|
2018-05-09 07:06:43 +02:00
|
|
|
|
2022-03-16 12:33:34 +01:00
|
|
|
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 || '');
|
|
|
|
},
|
2018-05-09 07:06:43 +02:00
|
|
|
|
|
|
|
actions: {
|
|
|
|
skip() {
|
2021-03-28 11:06:49 +02:00
|
|
|
CustomWizard.skip(this.get("wizardId"));
|
|
|
|
},
|
|
|
|
},
|
2019-06-19 07:39:39 +02:00
|
|
|
});
|