2021-10-05 14:54:06 +02:00
|
|
|
import { getOwner } from "discourse-common/lib/get-owner";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
shouldRender(attrs, ctx) {
|
|
|
|
return ctx.siteSettings.wizard_important_notices_on_dashboard;
|
|
|
|
},
|
|
|
|
|
|
|
|
setupComponent() {
|
2021-10-19 14:49:06 +02:00
|
|
|
const controller = getOwner(this).lookup("controller:admin-dashboard");
|
|
|
|
const importantNotice = controller.get("customWizardImportantNotice");
|
2021-10-05 14:54:06 +02:00
|
|
|
|
|
|
|
if (importantNotice) {
|
2021-10-19 14:49:06 +02:00
|
|
|
this.set("importantNotice", importantNotice);
|
2021-10-05 14:54:06 +02:00
|
|
|
}
|
2021-10-19 14:49:06 +02:00
|
|
|
},
|
|
|
|
};
|