More subscription license work allow logins addition

This commit is contained in:
2022-08-23 21:41:20 +00:00
parent f89bcf01ee
commit 089ba29fbb
4 changed files with 36 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "ayanova",
"version": "8.0.6",
"version": "8.0.7",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

View File

@@ -1,4 +1,4 @@
export default {
version: "8.0.6",
version: "8.0.7",
copyright: "© 1999-2022, Ground Zero Tech-Works Inc."
};

View File

@@ -86,8 +86,19 @@
@input="fieldValueChanged('usertype')"
></v-select>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
ref="allowLogin"
v-model="obj.allowLogin"
:readonly="formState.readOnly"
:disabled="obj.id === 1"
:label="$ay.t('AllowLogin')"
data-cy="allowLogin"
:error-messages="form().serverErrors(this, 'allowLogin')"
@change="fieldValueChanged('allowLogin')"
></v-checkbox>
</v-col>
<v-col v-if="obj.allowLogin" cols="12" sm="6" lg="4" xl="3">
<v-text-field
id="username"
ref="login"
@@ -105,7 +116,7 @@
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-col v-if="obj.allowLogin" cols="12" sm="6" lg="4" xl="3">
<v-text-field
id="password"
ref="password"
@@ -419,6 +430,7 @@ export default {
id: 0,
concurrency: 0,
active: true,
allowLogin: true,
name: null,
roles: null,
userType: 2,
@@ -1081,7 +1093,8 @@ async function fetchTranslatedText() {
"AuthDisableTwoFactor",
"AuthTwoFactorDisabled",
"WorkOrderItemScheduledUserList",
"WorkOrderItemLaborList"
"WorkOrderItemLaborList",
"AllowLogin"
]);
}

View File

@@ -83,6 +83,19 @@
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
ref="allowLogin"
v-model="obj.allowLogin"
:readonly="formState.readOnly"
:disabled="obj.id === 1"
:label="$ay.t('AllowLogin')"
data-cy="allowLogin"
:error-messages="form().serverErrors(this, 'allowLogin')"
@change="fieldValueChanged('allowLogin')"
></v-checkbox>
</v-col>
<v-col v-if="obj.allowLogin" cols="12" sm="6" lg="4" xl="3">
<v-text-field
id="username"
ref="login"
@@ -100,7 +113,7 @@
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-col v-if="obj.allowLogin" cols="12" sm="6" lg="4" xl="3">
<v-text-field
id="password"
ref="password"
@@ -116,6 +129,7 @@
@click:append-outer="reveal = !reveal"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<gz-date-time-picker
ref="lastLogin"
@@ -408,6 +422,7 @@ export default {
id: 0,
concurrency: 0,
active: true,
allowLogin: false,
name: null,
roles: 2048,
userType: 3,
@@ -1033,7 +1048,8 @@ async function fetchTranslatedText() {
"UserPageAddress",
"SendPasswordResetCode",
"AuthDisableTwoFactor",
"AuthTwoFactorDisabled"
"AuthTwoFactorDisabled",
"AllowLogin"
]);
}