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

publish notice count at the end of the update cycle

Dieser Commit ist enthalten in:
angusmcleod 2021-11-18 17:07:15 +08:00
Ursprung e1a746ca28
Commit fac8d821cf
3 geänderte Dateien mit 2 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -29,7 +29,6 @@ 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;

Datei anzeigen

@ -14,7 +14,6 @@ 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,

Datei anzeigen

@ -159,9 +159,9 @@ class CustomWizard::Notice
notice.retrieved_at = DateTime.now.iso8601(3)
notice.save
end
publish_notice_count
end
publish_notice_count
end
def self.publish_notice_count
@ -233,8 +233,6 @@ class CustomWizard::Notice
)
notice.save
end
publish_notice_count
end
def self.request_plugin_status?