[+] 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;
error = '';
disableInput = false;
/**
* This is called when the instance is created.
*/
+2
View File
@@ -9,6 +9,7 @@
<el-input v-model="username"
placeholder="SJP Username (Eg. flast21)"
:class="{'input-error': error !== ''}"
v-if="!disableInput"
@keyup.enter.native="onEnter">
</el-input>
@@ -16,6 +17,7 @@
placeholder="SJP Password"
show-password=""
:class="{'input-error': error !== ''}"
v-if="!disableInput"
@keyup.enter.native="onEnter">
</el-input>