This commit is contained in:
2020-07-13 21:00:11 +00:00
parent eac67dbb27
commit 731d7e7565
2 changed files with 61 additions and 2 deletions

View File

@@ -47,7 +47,9 @@ todo: Test server down while polling in release mode, does it recover when serve
todo: pick lists in forms should be sortable alphabetically
for example the event types and object types in notification subscription
todo: does Duplicate code really duplicate the tags? todo: does Duplicate code really duplicate the tags?
i.e. duplicate a widget with tags, do the tags come over? i.e. duplicate a widget with tags, do the tags come over?
if not then need to modify the copy object code to handle tags as well if not then need to modify the copy object code to handle tags as well

View File

@@ -5,6 +5,24 @@
<v-form ref="form"> <v-form ref="form">
<v-row> <v-row>
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-select
v-model="obj.eventType"
:items="selectLists.eventTypes"
item-text="name"
item-value="id"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:label="$ay.t('NotifyEventType')"
ref="eventType"
:data-cy="!!$ay.dev ? 'eventType' : false"
:rules="[form().integerValid(this, 'eventType')]"
:error-messages="form().serverErrors(this, 'eventType')"
@input="fieldValueChanged('eventType')"
></v-select>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-select <v-select
v-model="obj.ayaType" v-model="obj.ayaType"
@@ -21,6 +39,9 @@
@input="fieldValueChanged('ayaType')" @input="fieldValueChanged('ayaType')"
></v-select> ></v-select>
</v-col> </v-col>
</v-row> </v-row>
</v-form> </v-form>
</v-col> </v-col>
@@ -534,7 +555,43 @@ async function initForm(vm) {
// Ensures UI translated text is available // Ensures UI translated text is available
// //
async function fetchTranslatedText(vm) { async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations(["NotifySubscription"]); await window.$gz.translation.cacheTranslations([
"NotifySubscription",
"NotifyDeliveryMethod",
"NotifyEventType",
"NotifyDeliveryAddress",
"InTags",
"OutTags",
"NotifyEventObjectDeleted",
"NotifyEventObjectCreated",
"NotifyEventObjectModified",
"NotifyEventWorkorderStatusChange",
"NotifyEventContractExpiring",
"NotifyEventCSRAccepted",
"NotifyEventCSRRejected",
"NotifyEventWorkorderClosed",
"NotifyEventQuoteStatusChange",
"NotifyEventWorkorderFollowUp",
"NotifyEventServiceBankDepleted",
"NotifyEventReminderImminent",
"NotifyEventScheduledOnWorkorder",
"NotifyEventScheduledOnWorkorderImminent",
"NotifyEventWorkorderCloseByPassed",
"NotifyEventOutsideServiceOverdue",
"NotifyEventOutsideServiceReceived",
"NotifyEventPartRequestReceived",
"NotifyEventNotifyHealthCheck",
"NotifyEventBackupStatus",
"NotifyEventCustomerServiceImminent",
"NotifyEventPartRequested",
"NotifyEventWorkorderTotalExceedsThreshold",
"NotifyEventWorkorderStatusAge",
"NotifyEventUnitWarrantyExpiry",
"NotifyEventUnitMeterReadingMultipleExceeded",
"NotifyEventDefaultNotification",
"NotifyDeliveryMethodApp",
"NotifyDeliveryMethodSMTP"
]);
} }
////////////////////// //////////////////////