File tree 5 files changed +31
-30
lines changed 5 files changed +31
-30
lines changed Original file line number Diff line number Diff line change 1
1
<template lang="html">
2
2
{{#extended}}
3
- <router-view id =" app" ></router-view >
3
+ <router-view id =" app" / >
4
4
{{else}}
5
- <h1>\{{ hello }}</h1>
5
+ <h1 >\{{ hello }}</h1>
6
6
{{/extended}}
7
7
</template >
8
8
@@ -17,9 +17,9 @@ export default {
17
17
created () {
18
18
// Boot Application
19
19
this .$store .dispatch (' async/syncLoopback' );
20
- }
20
+ },
21
21
{{/ extended}}
22
- }
22
+ };
23
23
</script >
24
24
25
25
<style {{#extended }}lang="scss"{{else}}lang="css"{{/extended}}>
Original file line number Diff line number Diff line change 9
9
</template >
10
10
11
11
<script >
12
- import HeaderContainer from ' ./containers/HeaderContainer.vue' ;
13
-
14
12
// HelloWorld
15
13
import HelloWorld from ' @/components/HelloWorld/HelloWorld.vue' ;
14
+ import HeaderContainer from ' ./containers/HeaderContainer.vue' ;
16
15
17
16
export default {
18
17
components: {
Original file line number Diff line number Diff line change 10
10
<div class =" form-group" >
11
11
<label for =" email" >Email</label >
12
12
<input
13
+ id =" email"
14
+ v-model =" email"
13
15
type =" email"
14
16
class =" form-control"
15
- id =" email"
16
17
aria-describedby =" emailHelp"
17
18
placeholder =" Insert your email"
18
- v-model =" email"
19
19
required >
20
20
</div >
21
21
<div class =" form-group" >
22
22
<label for =" senha" >Password</label >
23
23
<input
24
+ id =" senha"
25
+ v-model =" password"
24
26
type =" password"
25
27
class =" form-control"
26
- id =" senha"
27
28
placeholder =" Insert your password"
28
- v-model =" password"
29
29
required >
30
30
</div >
31
31
<div
32
+ v-if =" error"
32
33
class =" alert alert-danger"
33
- role =" alert"
34
- v-if =" error" >\{{ error.message }}</div >
34
+ role =" alert" >\{{ error.message }}</div >
35
35
<div class =" flex" >
36
36
<a
37
37
class =" link"
38
- @click.prevent = " $refs.forgotPassword.show() "
39
- href = " # " >
38
+ href = " # "
39
+ @click.prevent = " $refs.forgotPassword.show() " >
40
40
Forgot your password?
41
41
</a >
42
42
<button
73
73
\{{ recoverError.message }}
74
74
</b-alert >
75
75
<input
76
+ ref =" recoverEmail"
77
+ v-model =" recoverEmail"
78
+ required
76
79
type =" email"
77
80
class =" form-control"
78
- ref =" recoverEmail"
79
81
placeholder =" Insert your email"
80
- v-model =" recoverEmail"
81
- @keydown.enter =" sendRecoverEmail"
82
- required >
82
+ @keydown.enter =" sendRecoverEmail" >
83
83
</form >
84
84
</b-modal >
85
85
@@ -136,7 +136,6 @@ export default {
136
136
},
137
137
sendRecoverEmail () {
138
138
const form = this .$refs .forgotPasswordForm ;
139
- const email = this .$refs .recoverEmail ;
140
139
141
140
this .recoverError = null ;
142
141
if (form .checkValidity ()) {
@@ -154,7 +153,9 @@ export default {
154
153
this .recoverError = err;
155
154
});
156
155
} else {
157
- this .recoverError = {message: ' Please, check the inserted email and try again' };
156
+ this .recoverError = {
157
+ message: ' Please, check the inserted email and try again' ,
158
+ };
158
159
}
159
160
},
160
161
},
Original file line number Diff line number Diff line change 11
11
class =" form-group" >
12
12
<label for =" senha" >Old password</label>
13
13
<input
14
+ id =" senha"
15
+ v-model =" password"
14
16
type =" password"
15
17
class =" form-control"
16
- id =" senha"
17
18
placeholder =" Insert the old password"
18
- v-model =" password"
19
19
required >
20
20
</div>
21
21
<div class =" form-group" >
22
22
<label for =" senha-nova1" >New password</label>
23
23
<input
24
+ id =" senha-nova1"
25
+ v-model =" passwordNew1"
24
26
type =" password"
25
27
class =" form-control"
26
- id =" senha-nova1"
27
28
placeholder =" Insert the new password"
28
- v-model =" passwordNew1"
29
29
required >
30
30
</div>
31
31
<div class =" form-group" >
32
32
<label for =" senha-nova2" >Confirmation</label>
33
33
<input
34
+ id =" senha-nova2"
35
+ v-model =" passwordNew2"
34
36
type =" password"
35
37
class =" form-control"
36
- id =" senha-nova2"
37
38
placeholder =" Confirm the new password"
38
- v-model =" passwordNew2"
39
39
required >
40
40
</div>
41
41
<div
42
+ v-if =" error"
42
43
class =" alert alert-danger"
43
- role =" alert"
44
- v-if =" error" >\{{ error.message }}</div>
44
+ role =" alert" >\{{ error.message }}</div>
45
45
<div class =" flex" >
46
46
<button
47
47
class =" btn btn-danger"
74
74
</template >
75
75
76
76
<script >
77
+ /* eslint-disable camelcase */
77
78
export default {
78
79
props: {
79
80
access_token: {
Original file line number Diff line number Diff line change 14
14
</b-navbar-brand>
15
15
16
16
<b-collapse
17
- is-nav
18
- id = " nav_collapse " >
17
+ id = " nav_collapse "
18
+ is-nav >
19
19
<b-navbar-nav class =" ml-auto" >
20
20
<b-nav-item :to =" {name: 'profile'}" >CHANGE PASSWORD</b-nav-item>
21
21
<b-nav-item @click =" onLogoutClick" >LOG OUT</b-nav-item>
You can’t perform that action at this time.
0 commit comments