forgot page converted to vue form
This commit is contained in:
7
resources/assets/js/views/auth/forgot.js
vendored
7
resources/assets/js/views/auth/forgot.js
vendored
@ -11,16 +11,17 @@ import Vue from 'vue';
|
||||
import Global from './../../mixins/global';
|
||||
|
||||
import Form from './../../plugins/form';
|
||||
import BulkAction from './../../plugins/bulk-action';
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
|
||||
mixins: [
|
||||
Global
|
||||
],
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
form: new Form('item')
|
||||
form: new Form('forgot')
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
20
resources/assets/js/views/auth/login.js
vendored
20
resources/assets/js/views/auth/login.js
vendored
@ -15,30 +15,14 @@ import BulkAction from './../../plugins/bulk-action';
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
|
||||
mixins: [
|
||||
Global
|
||||
],
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
form: new Form('login')
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.response'(notify) {
|
||||
/*
|
||||
if (!notify.message) {
|
||||
return {};
|
||||
}
|
||||
|
||||
var type = (notify.success) ? 'success' : 'warning';
|
||||
|
||||
this.$notify({
|
||||
message: notify.message,
|
||||
timeout: 5000,
|
||||
icon: 'ni ni-bell-55',
|
||||
type
|
||||
});
|
||||
*/
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user