This commit is contained in:
2021-03-19 22:56:26 +00:00
parent 9d37eabb4f
commit f320bb6c7a
3 changed files with 78 additions and 40 deletions

View File

@@ -310,19 +310,6 @@
></v-select>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="optionsObj.currencyName"
hint="e.g. USD, EUR, GBP, AUD, CAD etc"
:readonly="formState.readOnly"
:label="$ay.t('CurrencyCode')"
:rules="[form().required(this, 'currencyName')]"
:error-messages="form().serverErrors(this, 'currencyName')"
ref="currencyName"
@input="fieldValueChanged('currencyName')"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
v-model="optionsObj.hour12"
@@ -334,6 +321,22 @@
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="optionsObj.currencyName"
hint="e.g. USD, EUR, GBP, AUD, CAD etc"
persistent-hint
:readonly="formState.readOnly"
:label="$ay.t('CurrencyCode')"
:rules="[form().required(this, 'currencyName')]"
:error-messages="form().serverErrors(this, 'currencyName')"
ref="currencyName"
@input="fieldValueChanged('currencyName')"
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="optionsObj.languageOverride"
@@ -346,6 +349,8 @@
"
ref="languageOverride"
@input="fieldValueChanged('languageOverride')"
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
@@ -361,6 +366,8 @@
"
ref="timeZoneOverride"
@input="fieldValueChanged('timeZoneOverride')"
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
@@ -562,6 +569,12 @@ export default {
},
methods: {
goHelp() {
window.open(
this.$store.state.helpUrl + "ay-start-localization",
"_blank"
);
},
canSave: function() {
return this.formState.valid && this.formState.dirty;
},

View File

@@ -300,19 +300,6 @@
></v-select>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="optionsObj.currencyName"
hint="e.g. USD, EUR, GBP, AUD, CAD etc"
:readonly="formState.readOnly"
:label="$ay.t('CurrencyCode')"
:rules="[form().required(this, 'currencyName')]"
:error-messages="form().serverErrors(this, 'currencyName')"
ref="currencyName"
@input="fieldValueChanged('currencyName')"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
v-model="optionsObj.hour12"
@@ -324,6 +311,22 @@
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="optionsObj.currencyName"
hint="e.g. USD, EUR, GBP, AUD, CAD etc"
persistent-hint
:readonly="formState.readOnly"
:label="$ay.t('CurrencyCode')"
:rules="[form().required(this, 'currencyName')]"
:error-messages="form().serverErrors(this, 'currencyName')"
ref="currencyName"
@input="fieldValueChanged('currencyName')"
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="optionsObj.languageOverride"
@@ -336,6 +339,8 @@
"
ref="languageOverride"
@input="fieldValueChanged('languageOverride')"
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
@@ -351,6 +356,8 @@
"
ref="timeZoneOverride"
@input="fieldValueChanged('timeZoneOverride')"
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
@@ -572,6 +579,12 @@ export default {
},
methods: {
goHelp() {
window.open(
this.$store.state.helpUrl + "ay-start-localization",
"_blank"
);
},
canSave: function() {
return this.formState.valid && this.formState.dirty;
},

View File

@@ -100,20 +100,6 @@
@input="mapUrlSelectionChanged"
></v-select>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="obj.currencyName"
hint="e.g. USD, EUR, GBP, AUD, CAD etc"
:readonly="formState.readOnly"
:label="$ay.t('CurrencyCode')"
:rules="[form().required(this, 'currencyName')]"
:error-messages="form().serverErrors(this, 'currencyName')"
ref="currencyName"
@input="fieldValueChanged('currencyName')"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
v-model="obj.hour12"
@@ -125,6 +111,22 @@
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="obj.currencyName"
hint="e.g. USD, EUR, GBP, AUD, CAD etc"
persistent-hint
:readonly="formState.readOnly"
:label="$ay.t('CurrencyCode')"
:rules="[form().required(this, 'currencyName')]"
:error-messages="form().serverErrors(this, 'currencyName')"
ref="currencyName"
@input="fieldValueChanged('currencyName')"
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="obj.languageOverride"
@@ -135,6 +137,8 @@
@input="fieldValueChanged('languageOverride')"
:hint="locale().getResolvedLanguage()"
persistent-hint
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
@@ -148,6 +152,8 @@
@input="fieldValueChanged('timeZoneOverride')"
:hint="locale().getResolvedTimeZoneName()"
persistent-hint
append-outer-icon="$ayiQuestionCircle"
@click:append-outer="goHelp()"
></v-text-field>
</v-col>
@@ -290,6 +296,12 @@ export default {
}
},
methods: {
goHelp() {
window.open(
this.$store.state.helpUrl + "ay-start-localization",
"_blank"
);
},
translation() {
return window.$gz.translation;
},