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

@@ -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"
]);
}