Fix stock modal and notification counter [SCI-9864][SCI-9866]

This commit is contained in:
Anton 2023-12-12 09:57:06 +01:00
parent 36596b3931
commit 6165be921f
2 changed files with 4 additions and 1 deletions

View file

@ -12,6 +12,8 @@ window.initManageStockValueModalComponent = () => {
app.component('ManageStockValueModal', ManageStockValueModal); app.component('ManageStockValueModal', ManageStockValueModal);
app.use(PerfectScrollbar); app.use(PerfectScrollbar);
app.config.globalProperties.i18n = window.I18n; app.config.globalProperties.i18n = window.I18n;
mountWithTurbolinks(app, '#manageStockValueModal'); mountWithTurbolinks(app, '#manageStockValueModal', () => {
window.manageStockModalComponent = null;
});
} }
}; };

View file

@ -83,6 +83,7 @@ export default {
this.notifications = this.notifications.concat(response.data.data); this.notifications = this.notifications.concat(response.data.data);
this.nextPageUrl = response.data.links.next; this.nextPageUrl = response.data.links.next;
this.loadingPage = false; this.loadingPage = false;
this.$emit('update:unseenNotificationsCount');
}) })
.catch(error => { .catch(error => {
this.loadingPage = false; this.loadingPage = false;