fixed bug on frontend where user couldn't updated information about a domain

This commit is contained in:
Kristjan 2021-01-03 16:15:03 +01:00
parent b6cb305e5c
commit d811d69dac

View File

@ -227,7 +227,7 @@
dense
v-model.number="domainDialog.data.cost"
type="number"
label="Amount per day"
label="Amount per day in satoshis"
></q-input>
<div class="row q-mt-lg">
<q-btn
@ -478,14 +478,7 @@
updateDomainDialog: function (formId) {
var link = _.findWhere(this.domains, {id: formId})
console.log(link.id)
this.domainDialog.data.id = link.id
this.domainDialog.data.wallet = link.wallet
this.domainDialog.data.domain = link.domain
this.domainDialog.data.description = link.description
this.domainDialog.data.cf_token = link.cf_token
this.domainDialog.data.cf_zone_id = link.cf_zone_id
this.domainDialog.data.webhook = link.webhook
this.domainDialog.data.cost = link.cost
this.domainDialog.data = _.clone(link)
this.domainDialog.data.allowed_record_types = link.allowed_record_types.split(
', '
)