Move more dns provider related code into the shared DomainsModel.js to avoid duplication

This commit is contained in:
Johannes Zellner
2025-05-03 09:46:53 +02:00
parent 8446773037
commit 52ad526b87
4 changed files with 63 additions and 78 deletions

View File

@@ -21,30 +21,7 @@ const tlsProvider = ref('letsencrypt-prod-wildcard');
const showAdvanced = ref(false);
const customNameservers = ref(false);
// we have to define all properties here which are used in the DomainProviderForm to keep reactivity alive
const dnsConfig = ref({
accessKeyId: '',
accessKey: '',
accessToken: '',
apiKey: '',
apikey: '',
appSecret: '',
apiPassword: '',
apiSecret: '',
consumerKey: '',
credentials: { client_email: '', private_key: '' },
customerNumber: '',
defaultProxyStatus: false,
email: '',
endpoint: '',
password: '',
projectId: '',
secretAccessKey: '',
secretapikey: '',
token: '',
tokenType: '',
username: '',
});
const dnsConfig = ref(DomainsModel.createEmptyConfig());
const isFormValid = ref(false);
function checkValidity() {