Notification important feature added..
This commit is contained in:
parent
48b67c8f3a
commit
672e8365db
8
resources/assets/js/mixins/global.js
vendored
8
resources/assets/js/mixins/global.js
vendored
@ -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
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user