This commit is contained in:
2020-04-06 20:40:04 +00:00
parent 0bcdd38e86
commit 6ac690e16c

View File

@@ -3,7 +3,6 @@
<v-row align="center" justify="center" class="mx-auto mt-sm-12 mb-8">
<v-col cols="12" offset-md="4">
<form>
{{ trialMode }}
<v-row>
<v-col cols="12" class="hidden-md-and-up">
<v-img
@@ -22,6 +21,19 @@
<v-col cols="12" md="7" v-if="formState.errorBoxMessage">
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
</v-col>
<v-col cols="12" md="7" v-if="trialMode">
<v-select
v-model="selectedTrialUserId"
:items="selectLists.trialUsers"
item-text="name"
item-value="id"
label="Test accounts"
@input="trialUserSelected"
return-object
:data-cy="!!$ay.dev ? 'selecttrialuser' : false"
>
</v-select>
</v-col>
<v-col cols="12" md="7">
<v-text-field
name="username"
@@ -88,10 +100,28 @@ export default {
// username: "CustomerLimited",
// password: "CustomerLimited"
},
trialMode: false,
errorBadCreds: false,
reveal: false,
formState: { errorBoxMessage: null }
formState: { errorBoxMessage: null },
trialMode: false,
selectedTrialUserId: 1,
selectLists: {
trialUsers: [
{
name: "AyaNova administrator",
id: 1,
l: "manager",
p: "l3tm3in"
},
{
name: "Business admin - full",
id: 2,
l: "BizAdminFull",
p: "BizAdminFull"
}
]
}
};
},
created() {
@@ -115,6 +145,10 @@ export default {
},
computed: {},
methods: {
trialUserSelected(item) {
this.input.password = item.p;
this.input.username = item.l;
},
onEnterUserName: function() {
//move focus to password
document.getElementsByName("password")[0].focus();