From 672e8365dbaf9bae5d027b1daf73d0cfd4451085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 11 Feb 2021 17:09:31 +0300 Subject: [PATCH] Notification important feature added.. --- resources/assets/js/mixins/global.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/mixins/global.js b/resources/assets/js/mixins/global.js index b17e26608..7df0318c2 100644 --- a/resources/assets/js/mixins/global.js +++ b/resources/assets/js/mixins/global.js @@ -27,7 +27,6 @@ import NProgressAxios from './../plugins/nprogress-axios'; import { Select, Option, Steps, Step, Button, Link, Tooltip, ColorPicker } from 'element-ui'; import Form from './../plugins/form'; -import { concat } from 'lodash'; export default { components: { @@ -95,10 +94,15 @@ export default { flash_notification.forEach(notify => { let type = notify.level; + let timeout = 5000; + + if (notify.important) { + timeout = 0; + } this.$notify({ message: notify.message, - timeout: 5000, + timeout: timeout, icon: 'fas fa-bell', type });