publish notice count at the end of the update cycle
Dieser Commit ist enthalten in:
Ursprung
e1a746ca28
Commit
fac8d821cf
3 geänderte Dateien mit 2 neuen und 6 gelöschten Zeilen
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -159,10 +159,10 @@ class CustomWizard::Notice
|
|||
notice.retrieved_at = DateTime.now.iso8601(3)
|
||||
notice.save
|
||||
end
|
||||
end
|
||||
|
||||
publish_notice_count
|
||||
end
|
||||
end
|
||||
|
||||
def self.publish_notice_count
|
||||
payload = {
|
||||
|
@ -233,8 +233,6 @@ class CustomWizard::Notice
|
|||
)
|
||||
notice.save
|
||||
end
|
||||
|
||||
publish_notice_count
|
||||
end
|
||||
|
||||
def self.request_plugin_status?
|
||||
|
|
Laden …
In neuem Issue referenzieren