diff --git a/src/common/customizations/postgresql.js b/src/common/customizations/postgresql.js index ff67b892..11d5ce97 100644 --- a/src/common/customizations/postgresql.js +++ b/src/common/customizations/postgresql.js @@ -13,6 +13,7 @@ module.exports = { // Tools processesList: true, // Structure + schemas: true, tables: true, views: true, triggers: true, diff --git a/src/renderer/components/TheNotificationsBoard.vue b/src/renderer/components/TheNotificationsBoard.vue index 6c782960..479f265a 100644 --- a/src/renderer/components/TheNotificationsBoard.vue +++ b/src/renderer/components/TheNotificationsBoard.vue @@ -40,15 +40,13 @@ export default { } }, watch: { - notifications: { - deep: true, - handler: function (notification) { - if (notification.length) { - this.timeouts[notification[0].uid] = setTimeout(() => { - this.removeNotification(notification[0].uid); - delete this.timeouts[notification.uid]; - }, this.notificationsTimeout * 1000); - } + 'notifications.length': function (val) { + if (val > 0) { + const nUid = this.notifications[0].uid; + this.timeouts[nUid] = setTimeout(() => { + this.removeNotification(nUid); + delete this.timeouts[nUid]; + }, this.notificationsTimeout * 1000); } } }, @@ -63,11 +61,14 @@ export default { } }, rearmTimeouts () { + const delay = 50; + let i = this.notifications.length * delay; for (const notification of this.notifications) { this.timeouts[notification.uid] = setTimeout(() => { this.removeNotification(notification.uid); delete this.timeouts[notification.uid]; - }, this.notificationsTimeout * 1000); + }, (this.notificationsTimeout * 1000) + i); + i = i > delay ? i - delay : 0; } } }