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", "name": "ayanova",
"version": "8.0.6", "version": "8.0.7",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",

View File

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

View File

@@ -86,8 +86,19 @@
@input="fieldValueChanged('usertype')" @input="fieldValueChanged('usertype')"
></v-select> ></v-select>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4" xl="3"> <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 <v-text-field
id="username" id="username"
ref="login" ref="login"
@@ -105,7 +116,7 @@
></v-text-field> ></v-text-field>
</v-col> </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 <v-text-field
id="password" id="password"
ref="password" ref="password"
@@ -419,6 +430,7 @@ export default {
id: 0, id: 0,
concurrency: 0, concurrency: 0,
active: true, active: true,
allowLogin: true,
name: null, name: null,
roles: null, roles: null,
userType: 2, userType: 2,
@@ -1081,7 +1093,8 @@ async function fetchTranslatedText() {
"AuthDisableTwoFactor", "AuthDisableTwoFactor",
"AuthTwoFactorDisabled", "AuthTwoFactorDisabled",
"WorkOrderItemScheduledUserList", "WorkOrderItemScheduledUserList",
"WorkOrderItemLaborList" "WorkOrderItemLaborList",
"AllowLogin"
]); ]);
} }

View File

@@ -83,6 +83,19 @@
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4" xl="3"> <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 <v-text-field
id="username" id="username"
ref="login" ref="login"
@@ -100,7 +113,7 @@
></v-text-field> ></v-text-field>
</v-col> </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 <v-text-field
id="password" id="password"
ref="password" ref="password"
@@ -116,6 +129,7 @@
@click:append-outer="reveal = !reveal" @click:append-outer="reveal = !reveal"
></v-text-field> ></v-text-field>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<gz-date-time-picker <gz-date-time-picker
ref="lastLogin" ref="lastLogin"
@@ -408,6 +422,7 @@ export default {
id: 0, id: 0,
concurrency: 0, concurrency: 0,
active: true, active: true,
allowLogin: false,
name: null, name: null,
roles: 2048, roles: 2048,
userType: 3, userType: 3,
@@ -1033,7 +1048,8 @@ async function fetchTranslatedText() {
"UserPageAddress", "UserPageAddress",
"SendPasswordResetCode", "SendPasswordResetCode",
"AuthDisableTwoFactor", "AuthDisableTwoFactor",
"AuthTwoFactorDisabled" "AuthTwoFactorDisabled",
"AllowLogin"
]); ]);
} }