Better Forms
This commit is contained in:
parent
f39f80e64e
commit
e8dbb7b161
4 changed files with 4 additions and 11 deletions
2
Makefile
2
Makefile
|
@ -24,7 +24,7 @@ all: develop
|
|||
|
||||
%/$(CANARY):
|
||||
$(eval image:=$(patsubst %/$(CANARY),%,$@))
|
||||
$(COMPOSE) build $(image)
|
||||
$(COMPOSE) build --pull $(image)
|
||||
$(COMPOSE) run --rm $(image) yarn install --production=false
|
||||
|
||||
DFILES:=$(wildcard */Dockerfile)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"favorite": 0,
|
||||
"type": "vue",
|
||||
"name": "frontend",
|
||||
"openDate": 1557153442414,
|
||||
"openDate": 1557166583987,
|
||||
"widgets": [
|
||||
{
|
||||
"id": "5sGiztidd",
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
<v-text-field
|
||||
ref="autofocus"
|
||||
v-model="login"
|
||||
:rules="loginRules"
|
||||
label="User name"
|
||||
required
|
||||
></v-text-field>
|
||||
|
@ -17,11 +16,9 @@
|
|||
v-model="password"
|
||||
:append-icon="showPassword ? 'visibility' : 'visibility_off'"
|
||||
@click:append="showPassword = !showPassword"
|
||||
:rules="passwordRules"
|
||||
:type="showPassword ? 'text' : 'password'"
|
||||
label="Password"
|
||||
required
|
||||
counter
|
||||
></v-text-field>
|
||||
</v-card-text>
|
||||
</FormDialog>
|
||||
|
@ -39,11 +36,8 @@ export default {
|
|||
|
||||
data: () => ({
|
||||
login: '',
|
||||
loginRules: [v => !!v || 'User name is required'],
|
||||
|
||||
password: '',
|
||||
showPassword: false,
|
||||
passwordRules: [v => !!v || 'Password is required']
|
||||
showPassword: false
|
||||
}),
|
||||
|
||||
methods: {
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
:type="showPassword ? 'text' : 'password'"
|
||||
label="Confirm Password"
|
||||
required
|
||||
counter
|
||||
></v-text-field>
|
||||
</v-card-text>
|
||||
</FormDialog>
|
||||
|
@ -61,7 +60,7 @@ export default {
|
|||
computed: {
|
||||
passwordConfirmRules() {
|
||||
return [
|
||||
() => this.password === this.passwordConfirm || "Passwords don't match"
|
||||
() => this.password === this.passwordConfirm || "Passwords must match"
|
||||
]
|
||||
},
|
||||
},
|
||||
|
|
Reference in a new issue