[+] Add switch to disable input
This commit is contained in:
@@ -16,6 +16,8 @@ export default class Login extends Vue
|
||||
loading = false;
|
||||
error = '';
|
||||
|
||||
disableInput = false;
|
||||
|
||||
/**
|
||||
* This is called when the instance is created.
|
||||
*/
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user