Add pluginId and console.logs
Dieser Commit ist enthalten in:
Ursprung
559d3f4f19
Commit
e1a746ca28
3 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
|
@ -29,6 +29,7 @@ export default Controller.extend({
|
||||||
|
|
||||||
CustomWizardNotice.list({ page, include_all: true })
|
CustomWizardNotice.list({ page, include_all: true })
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
console.log('loadMoreNotices result', result);
|
||||||
if (result.notices.length === 0) {
|
if (result.notices.length === 0) {
|
||||||
this.set("canLoadMore", false);
|
this.set("canLoadMore", false);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -14,6 +14,7 @@ export default Controller.extend({
|
||||||
this.messageBus.subscribe("/custom-wizard/notices", (data) => {
|
this.messageBus.subscribe("/custom-wizard/notices", (data) => {
|
||||||
if (isPresent(data.active_notice_count)) {
|
if (isPresent(data.active_notice_count)) {
|
||||||
this.set("activeNoticeCount", data.active_notice_count);
|
this.set("activeNoticeCount", data.active_notice_count);
|
||||||
|
console.log('adminWizards resetting');
|
||||||
this.adminWizardsNotices.setProperties({
|
this.adminWizardsNotices.setProperties({
|
||||||
notices: A(),
|
notices: A(),
|
||||||
page: 0,
|
page: 0,
|
||||||
|
|
|
@ -23,6 +23,8 @@ export default {
|
||||||
|
|
||||||
withPluginApi("0.8.36", (api) => {
|
withPluginApi("0.8.36", (api) => {
|
||||||
api.modifyClass("route:admin-dashboard", {
|
api.modifyClass("route:admin-dashboard", {
|
||||||
|
pluginId: "custom-wizard",
|
||||||
|
|
||||||
setupController(controller) {
|
setupController(controller) {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
|
@ -32,6 +34,7 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
api.modifyClass("controller:admin-dashboard", {
|
api.modifyClass("controller:admin-dashboard", {
|
||||||
|
pluginId: "custom-wizard",
|
||||||
criticalNotices: A(),
|
criticalNotices: A(),
|
||||||
|
|
||||||
unsubscribe() {
|
unsubscribe() {
|
||||||
|
|
Laden …
In neuem Issue referenzieren