[+] Add switch to disable input
This commit is contained in:
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user