File tree Expand file tree Collapse file tree 8 files changed +17
-15
lines changed Expand file tree Collapse file tree 8 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export default {
80
80
let self = this ;
81
81
axios .post (' /api/logout?token=' + localStorage .getItem (" api_token" ),{})
82
82
.then (function (response ) {
83
- self .$router .push ({ path: ' login' });
83
+ self .$router .push ({ path: ' / login' });
84
84
}).catch (function (error ) {
85
85
console .log (error);
86
86
});
Original file line number Diff line number Diff line change 23
23
v-model =" note.content"
24
24
/>
25
25
<CInput label =" Applies to date" type =" date" id =" applies_to_date" v-model =" note.applies_to_date" />
26
- <CSelect id =" status_id"
26
+ <CSelect
27
+ id =" status_id"
27
28
:value.sync =" note.status_id"
28
29
:options =" statuses"
29
30
label =" Status"
30
- >
31
- </CSelect >
31
+ />
32
32
<CInput label =" Note type" type =" text" id =" note_type" v-model =" note.note_type" ></CInput >
33
33
34
34
<CButton color =" primary" @click =" update()" >Edit</CButton >
@@ -58,6 +58,7 @@ export default {
58
58
status_id: null ,
59
59
note_type: ' ' ,
60
60
},
61
+ // status_id: null,
61
62
statuses: [],
62
63
message: ' ' ,
63
64
dismissSecs: 7 ,
@@ -94,7 +95,7 @@ export default {
94
95
self .showAlert ();
95
96
}else {
96
97
console .log (error);
97
- self .$router .push ({ path: ' login' });
98
+ self .$router .push ({ path: ' / login' });
98
99
}
99
100
});
100
101
},
@@ -109,9 +110,10 @@ export default {
109
110
let data = JSON .parse (JSON .stringify (response .data ));
110
111
self .note = data .note ;
111
112
self .statuses = data .statuses ;
113
+ self .$forceUpdate ()
112
114
}).catch (function (error ) {
113
115
console .log (error);
114
- self .$router .push ({ path: ' login' });
116
+ self .$router .push ({ path: ' / login' });
115
117
});
116
118
}
117
119
}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default {
55
55
self .note = response .data ;
56
56
}).catch (function (error ) {
57
57
console .log (error);
58
- self .$router .push ({ path: ' login' });
58
+ self .$router .push ({ path: ' / login' });
59
59
});
60
60
}
61
61
}
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export default {
137
137
self .getNotes ();
138
138
}).catch (function (error ) {
139
139
console .log (error);
140
- self .$router .push ({ path: ' login' });
140
+ self .$router .push ({ path: ' / login' });
141
141
});
142
142
},
143
143
createNote () {
@@ -156,7 +156,7 @@ export default {
156
156
self .items = response .data ;
157
157
}).catch (function (error ) {
158
158
console .log (error);
159
- self .$router .push ({ path: ' login' });
159
+ self .$router .push ({ path: ' / login' });
160
160
});
161
161
}
162
162
},
Original file line number Diff line number Diff line change 82
82
self .password = ' ' ;
83
83
self .password_confirmation = ' ' ;
84
84
console .log (response);
85
- self .$router .push ({ path: ' login' });
85
+ self .$router .push ({ path: ' / login' });
86
86
})
87
87
.catch (function (error ) {
88
88
console .log (error);
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export default {
72
72
self .showAlert ();
73
73
}).catch (function (error ) {
74
74
console .log (error);
75
- self .$router .push ({ path: ' login' });
75
+ self .$router .push ({ path: ' / login' });
76
76
});
77
77
},
78
78
countDownChanged (dismissCountDown ) {
@@ -90,7 +90,7 @@ export default {
90
90
self .email = response .data .email ;
91
91
}).catch (function (error ) {
92
92
console .log (error);
93
- self .$router .push ({ path: ' login' });
93
+ self .$router .push ({ path: ' / login' });
94
94
});
95
95
}
96
96
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default {
51
51
self .items = items .map (([key , value ]) => {return {key: key, value: value}});
52
52
}).catch (function (error ) {
53
53
console .log (error);
54
- self .$router .push ({ path: ' login' });
54
+ self .$router .push ({ path: ' / login' });
55
55
});
56
56
}
57
57
}
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export default {
106
106
self .getUsers ();
107
107
}).catch (function (error ) {
108
108
console .log (error);
109
- self .$router .push ({ path: ' login' });
109
+ self .$router .push ({ path: ' / login' });
110
110
});
111
111
},
112
112
countDownChanged (dismissCountDown ) {
@@ -123,7 +123,7 @@ export default {
123
123
self .you = response .data .you ;
124
124
}).catch (function (error ) {
125
125
console .log (error);
126
- self .$router .push ({ path: ' login' });
126
+ self .$router .push ({ path: ' / login' });
127
127
});
128
128
}
129
129
},
You can’t perform that action at this time.
0 commit comments