Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 19:10:29 +01:00
16 Zeilen
443 B
Text
16 Zeilen
443 B
Text
|
import { getOwner } from "discourse-common/lib/get-owner";
|
||
|
|
||
|
export default {
|
||
|
shouldRender(attrs, ctx) {
|
||
|
return ctx.siteSettings.wizard_important_notices_on_dashboard;
|
||
|
},
|
||
|
|
||
|
setupComponent() {
|
||
|
const controller = getOwner(this).lookup('controller:admin-dashboard');
|
||
|
const importantNotice = controller.get('customWizardImportantNotice');
|
||
|
|
||
|
if (importantNotice) {
|
||
|
this.set('importantNotice', importantNotice);
|
||
|
}
|
||
|
}
|
||
|
};
|