Vue: Auth page fixes..
This commit is contained in:
parent
38ad7f7f0a
commit
1c0697b266
40
resources/assets/js/views/auth/forgot.js
vendored
40
resources/assets/js/views/auth/forgot.js
vendored
@ -8,25 +8,43 @@ require('./../../bootstrap');
|
|||||||
|
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
import DashboardPlugin from './../../plugins/dashboard-plugin';
|
|
||||||
|
|
||||||
import Global from './../../mixins/global';
|
|
||||||
|
|
||||||
import Form from './../../plugins/form';
|
import Form from './../../plugins/form';
|
||||||
|
|
||||||
// plugin setup
|
|
||||||
Vue.use(DashboardPlugin);
|
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
|
|
||||||
mixins: [
|
|
||||||
Global
|
|
||||||
],
|
|
||||||
|
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
form: new Form('forgot')
|
form: new Form('forgot')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
this.checkNotify();
|
||||||
|
},
|
||||||
|
|
||||||
|
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();
|
||||||
|
},
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
29
resources/assets/js/views/auth/login.js
vendored
29
resources/assets/js/views/auth/login.js
vendored
@ -17,5 +17,34 @@ const app = new Vue({
|
|||||||
return {
|
return {
|
||||||
form: new Form('login')
|
form: new Form('login')
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
this.checkNotify();
|
||||||
|
},
|
||||||
|
|
||||||
|
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();
|
||||||
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
9
resources/assets/js/views/auth/reset.js
vendored
9
resources/assets/js/views/auth/reset.js
vendored
@ -8,13 +8,8 @@ require('./../../bootstrap');
|
|||||||
|
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
import DashboardPlugin from './../../plugins/dashboard-plugin';
|
|
||||||
|
|
||||||
import Form from './../../plugins/form';
|
import Form from './../../plugins/form';
|
||||||
|
|
||||||
// plugin setup
|
|
||||||
Vue.use(DashboardPlugin);
|
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
|
|
||||||
@ -24,6 +19,10 @@ const app = new Vue({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
this.checkNotify();
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
// Check Default set notify > store / update action
|
// Check Default set notify > store / update action
|
||||||
checkNotify: function () {
|
checkNotify: function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user