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 })
|
||||
.then((result) => {
|
||||
console.log('loadMoreNotices result', result);
|
||||
if (result.notices.length === 0) {
|
||||
this.set("canLoadMore", false);
|
||||
return;
|
||||
|
|
|
@ -14,6 +14,7 @@ export default Controller.extend({
|
|||
this.messageBus.subscribe("/custom-wizard/notices", (data) => {
|
||||
if (isPresent(data.active_notice_count)) {
|
||||
this.set("activeNoticeCount", data.active_notice_count);
|
||||
console.log('adminWizards resetting');
|
||||
this.adminWizardsNotices.setProperties({
|
||||
notices: A(),
|
||||
page: 0,
|
||||
|
|
|
@ -23,6 +23,8 @@ export default {
|
|||
|
||||
withPluginApi("0.8.36", (api) => {
|
||||
api.modifyClass("route:admin-dashboard", {
|
||||
pluginId: "custom-wizard",
|
||||
|
||||
setupController(controller) {
|
||||
this._super(...arguments);
|
||||
|
||||
|
@ -32,6 +34,7 @@ export default {
|
|||
});
|
||||
|
||||
api.modifyClass("controller:admin-dashboard", {
|
||||
pluginId: "custom-wizard",
|
||||
criticalNotices: A(),
|
||||
|
||||
unsubscribe() {
|
||||
|
|
Laden …
In neuem Issue referenzieren