mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Fix stock modal and notification counter [SCI-9864][SCI-9866]
This commit is contained in:
parent
36596b3931
commit
6165be921f
2 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,8 @@ window.initManageStockValueModalComponent = () => {
|
|||
app.component('ManageStockValueModal', ManageStockValueModal);
|
||||
app.use(PerfectScrollbar);
|
||||
app.config.globalProperties.i18n = window.I18n;
|
||||
mountWithTurbolinks(app, '#manageStockValueModal');
|
||||
mountWithTurbolinks(app, '#manageStockValueModal', () => {
|
||||
window.manageStockModalComponent = null;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -83,6 +83,7 @@ export default {
|
|||
this.notifications = this.notifications.concat(response.data.data);
|
||||
this.nextPageUrl = response.data.links.next;
|
||||
this.loadingPage = false;
|
||||
this.$emit('update:unseenNotificationsCount');
|
||||
})
|
||||
.catch(error => {
|
||||
this.loadingPage = false;
|
||||
|
|
Loading…
Reference in a new issue