This commit is contained in:
2020-07-22 23:07:22 +00:00
parent 31dbbe2086
commit 5712c6fc72

View File

@@ -161,17 +161,17 @@
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="obj.ayaNovaServerUrl"
v-model="obj.ayaNovaServerURL"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:clearable="!formState.readOnly"
@click:clear="fieldValueChanged('ayaNovaServerUrl')"
:label="$ay.t('AyaNovaServerUrl')"
:rules="[form().required(this, 'ayaNovaServerUrl')]"
:error-messages="form().serverErrors(this, 'ayaNovaServerUrl')"
ref="ayaNovaServerUrl"
:data-cy="!!$ay.dev ? 'ayaNovaServerUrl' : false"
@input="fieldValueChanged('ayaNovaServerUrl')"
@click:clear="fieldValueChanged('ayaNovaServerURL')"
:label="$ay.t('AyaNovaServerURL')"
:rules="[form().required(this, 'ayaNovaServerURL')]"
:error-messages="form().serverErrors(this, 'ayaNovaServerURL')"
ref="ayaNovaServerURL"
:data-cy="!!$ay.dev ? 'ayaNovaServerURL' : false"
@input="fieldValueChanged('ayaNovaServerURL')"
></v-text-field>
</v-col>
</v-row>
@@ -220,39 +220,6 @@ export default {
},
components: {},
data() {
/*
using System;
using AyaNova.Biz;
namespace AyaNova.Models
{
public class GlobalOpsNotificationSettings
{
public long Id { get; set; }//this is always 1 as there is only ever one single global Ops object
public uint Concurrency { get; set; }
public bool SmtpDeliveryActive { get; set; }
public string SmtpServerAddress { get; set; }
public string SmtpAccount { get; set; }
public string SmtpPassword { get; set; }
public NotifyMailSecurity ConnectionSecurity { get; set; }
public int SmtpServerPort { get; set; }
public string NotifyFromAddress { get; set; }
public GlobalOpsNotificationSettings()
{
SmtpDeliveryActive = true;
Id = 1;
SmtpServerAddress="mail.example.com";
SmtpAccount="notifydeliverfromaccount@example.com";
SmtpPassword="examplepassword";
ConnectionSecurity= NotifyMailSecurity.SSLTLS;
SmtpServerPort=587;
NotifyFromAddress="noreply@example.com";
}
}
}
*/
return {
testAddress: null,
testDialog: false,
@@ -269,7 +236,7 @@ namespace AyaNova.Models
connectionSecurity: null,
smtpServerPort: null,
notifyFromAddress: null,
ayaNovaServerUrl: null
ayaNovaServerURL: null
},
formState: {
ready: false,