[+] Add switch to disable input

This commit is contained in:
Hykilpikonna
2019-12-02 14:38:59 -05:00
parent c19bb5bfe0
commit 987c9e462a
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -16,6 +16,8 @@ export default class Login extends Vue
loading = false; loading = false;
error = ''; error = '';
disableInput = false;
/** /**
* This is called when the instance is created. * This is called when the instance is created.
*/ */
+2
View File
@@ -9,6 +9,7 @@
<el-input v-model="username" <el-input v-model="username"
placeholder="SJP Username (Eg. flast21)" placeholder="SJP Username (Eg. flast21)"
:class="{'input-error': error !== ''}" :class="{'input-error': error !== ''}"
v-if="!disableInput"
@keyup.enter.native="onEnter"> @keyup.enter.native="onEnter">
</el-input> </el-input>
@@ -16,6 +17,7 @@
placeholder="SJP Password" placeholder="SJP Password"
show-password="" show-password=""
:class="{'input-error': error !== ''}" :class="{'input-error': error !== ''}"
v-if="!disableInput"
@keyup.enter.native="onEnter"> @keyup.enter.native="onEnter">
</el-input> </el-input>