0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +01:00
discourse-custom-wizard/assets/javascripts/discourse/connectors/admin-dashboard-top/custom-wizard-important-notice.js.es6
2021-10-05 20:54:06 +08:00

16 Zeilen
Kein EOL
443 B
JavaScript

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);
}
}
};