1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/connectors/admin-dashboard-top/custom-wizard-issue-notice.js.es6
angusmcleod 084c6f4a7a wip
2021-09-24 17:58:42 +08:00

12 Zeilen
Kein EOL
347 B
JavaScript

import { getOwner } from "discourse-common/lib/get-owner";
export default {
setupComponent() {
const controller = getOwner(this).lookup('controller:admin-dashboard')
const wizardWarningNotice = controller.get('wizardWarningNotice');
if (wizardWarningNotice) {
this.set('wizardWarningNotice', wizardWarningNotice);
}
}
}