This commit is contained in:
2020-11-20 20:02:46 +00:00
parent c65af91492
commit 471c22e62a
2 changed files with 27 additions and 5 deletions

View File

@@ -563,9 +563,32 @@
:precision="6"
></gz-decimal>
</v-col>
<v-col cols="12">
<h3>{{ $ay.t("AddressTypePostal") }}</h3>
<v-menu offset-y v-if="rights.change">
<template v-slot:activator="{ on, attrs }">
<span class="text-h6">
{{ $ay.t("AddressTypePostal") }}</span
><v-btn icon v-bind="attrs" v-on="on">
<v-icon>$ayiEllipsisV</v-icon>
</v-btn>
</template>
<v-list>
<v-list-item @click="AddressCopyToPhysical">
<v-list-item-icon>
<v-icon>$ayiClone</v-icon>
</v-list-item-icon>
<v-list-item-title>{{
$ay.t("AddressCopyToPostal")
}}</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
<span class="text-h6" v-else>
{{ $ay.t("AddressTypePhysical") }}</span
>
</v-col>
<v-col
v-if="form().showMe(this, 'PostAddress')"
cols="12"
@@ -1490,7 +1513,7 @@ async function fetchTranslatedText(vm) {
"UserPhone1",
"UserPhone2",
"UserPageAddress",
"User",
"Contact",
"LastLogin"
]);
}
@@ -1500,7 +1523,7 @@ async function fetchTranslatedText(vm) {
//
async function createTableHeaders(vm) {
vm.headers = [
{ text: vm.$ay.t("User"), value: "name" },
{ text: vm.$ay.t("Contact"), value: "name" },
{ text: vm.$ay.t("UserEmailAddress"), value: "emailAddress" },
{ text: vm.$ay.t("UserPhone1"), value: "phone1" },
{ text: vm.$ay.t("UserPhone2"), value: "phone2" },

View File

@@ -7,7 +7,7 @@
<v-form ref="form">
<v-tabs mobile-breakpoint="100" v-model="tab">
<v-tab>{{ $ay.t("User") }}</v-tab>
<v-tab>{{ $ay.t("Contact") }}</v-tab>
<v-tab v-if="obj.id != 0">{{ $ay.t("UserSettings") }}</v-tab>
<v-tabs-items v-model="tab">
@@ -1068,7 +1068,6 @@ async function initForm(vm) {
//
async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations([
"User",
"UserSettings",
"Contact",
"Name",