Notification important feature added..

This commit is contained in:
Cüneyt Şentürk 2021-02-11 17:09:31 +03:00
parent 48b67c8f3a
commit 672e8365db

View File

@ -27,7 +27,6 @@ import NProgressAxios from './../plugins/nprogress-axios';
import { Select, Option, Steps, Step, Button, Link, Tooltip, ColorPicker } from 'element-ui'; import { Select, Option, Steps, Step, Button, Link, Tooltip, ColorPicker } from 'element-ui';
import Form from './../plugins/form'; import Form from './../plugins/form';
import { concat } from 'lodash';
export default { export default {
components: { components: {
@ -95,10 +94,15 @@ export default {
flash_notification.forEach(notify => { flash_notification.forEach(notify => {
let type = notify.level; let type = notify.level;
let timeout = 5000;
if (notify.important) {
timeout = 0;
}
this.$notify({ this.$notify({
message: notify.message, message: notify.message,
timeout: 5000, timeout: timeout,
icon: 'fas fa-bell', icon: 'fas fa-bell',
type type
}); });