0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-20 07:41:11 +02:00

Add pluginId and console.logs

Dieser Commit ist enthalten in:
angusmcleod 2021-11-18 16:32:23 +08:00
Ursprung 559d3f4f19
Commit e1a746ca28
3 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -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;

Datei anzeigen

@ -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,

Datei anzeigen

@ -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() {