fix: new notification event
This commit is contained in:
parent
0d776920fa
commit
4fb9a8a2c4
1 changed files with 3 additions and 3 deletions
|
|
@ -272,7 +272,7 @@ class NotificationsView extends BaseNotificaitonsView {
|
|||
insert_into_dropdown() {
|
||||
let new_item = this.dropdown_items[0];
|
||||
let new_item_html = this.get_dropdown_item_html(new_item);
|
||||
$(new_item_html).prependTo(this.dropdown_list.find(this.$notifications));
|
||||
$(new_item_html).prependTo(this.container);
|
||||
this.change_activity_status();
|
||||
}
|
||||
|
||||
|
|
@ -361,12 +361,12 @@ class NotificationsView extends BaseNotificaitonsView {
|
|||
|
||||
setup_notification_listeners() {
|
||||
frappe.realtime.on('notification', () => {
|
||||
this.dropdown.find('.notifications-indicator').show();
|
||||
// this.dropdown.find('.notifications-indicator').show();
|
||||
this.update_dropdown();
|
||||
});
|
||||
|
||||
frappe.realtime.on('indicator_hide', () => {
|
||||
this.dropdown.find('.notifications-indicator').hide();
|
||||
// this.dropdown.find('.notifications-indicator').hide();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue