Change dashboardPlugin location,

This commit is contained in:
Cüneyt Şentürk
2020-01-03 12:10:07 +03:00
parent 8c8a375c43
commit 38ad7f7f0a
37 changed files with 194 additions and 69 deletions

View File

@ -8,20 +8,44 @@ require('./../../bootstrap');
import Vue from 'vue';
import Global from './../../mixins/global';
import DashboardPlugin from './../../plugins/dashboard-plugin';
import Form from './../../plugins/form';
// plugin setup
Vue.use(DashboardPlugin);
const app = new Vue({
el: '#app',
mixins: [
Global
],
data: function () {
return {
form: new Form('reset')
}
},
methods: {
// Check Default set notify > store / update action
checkNotify: function () {
if (!flash_notification) {
return false;
}
flash_notification.forEach(notify => {
let type = notify.level;
this.$notify({
message: notify.message,
timeout: 5000,
icon: 'fas fa-bell',
type
});
});
},
// Form Submit
onSubmit() {
this.form.submit();
},
}
});