This commit is contained in:
2020-11-18 14:51:50 +00:00
parent 67c57291a4
commit 9d3c1c0b0d
6 changed files with 1158 additions and 449 deletions

View File

@@ -641,7 +641,7 @@
hide-default-footer
@click:row="contactsRowClick"
:sort-by="['name']"
show-select
:show-select="false"
:header-props="{ sortByText: $ay.t('Sort') }"
data-cy="custUsersTable"
>
@@ -653,7 +653,7 @@
</template>
<template v-slot:top>
<div>
<div class="text-right mb-6">
<v-btn
@click="contactsGetDataFromApi"
:disabled="obj.id == 0"
@@ -1129,15 +1129,17 @@ export default {
ret.push({
id: o.id,
name: o.name,
emailAddress: o.emailAddress,
phone1: o.phone1,
phone2: o.phone2,
phone3: o.phone3,
active: o.active,
userType: window.$gz.enums.get("outsideusertype", o.userType),
lastLogin: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
o.lastLogin,
this.timeZoneName,
this.languageName,
this.hour12
),
roles: this.rolesDisplayFromRoles(o.roles)
)
});
}
@@ -1432,6 +1434,10 @@ async function fetchTranslatedText(vm) {
async function createTableHeaders(vm) {
vm.headers = [
{ text: vm.$ay.t("User"), value: "name" },
{ text: vm.$ay.t("UserEmailAddress"), value: "emailAddress" },
{ text: vm.$ay.t("UserPhone1"), value: "phone1" },
{ text: vm.$ay.t("UserPhone2"), value: "phone2" },
{ text: vm.$ay.t("UserPageAddress"), value: "phone3" },
{ text: vm.$ay.t("Active"), value: "active" },
{ text: vm.$ay.t("LastLogin"), value: "lastLogin" }
];