|
|
|
@ -80,7 +80,7 @@
|
|
|
|
|
@save="saveSite()" |
|
|
|
|
@save-constructor="saveSiteConstr()" |
|
|
|
|
@change="site_rec = $event" |
|
|
|
|
@change-constructor="constructor_params = $event" |
|
|
|
|
@change-constructor="constructor_params = $event; constructor_params.domain = domain" |
|
|
|
|
:site-changed="siteChanged" |
|
|
|
|
:signing-site="signingSite" |
|
|
|
|
/> |
|
|
|
@ -212,7 +212,7 @@ export default {
|
|
|
|
|
this.constructor_params !== this.saved_constructor_params; |
|
|
|
|
} |
|
|
|
|
return ( |
|
|
|
|
this.records && (this.site_rec !== this.records.site || constr_change) || (!this.records && constr_change) |
|
|
|
|
(this.records && (this.site_rec !== this.records.site || constr_change)) || (!this.records && constr_change) || (this.records !== null && this.site_rec === null) |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
settingsCompLoaded() { |
|
|
|
@ -283,6 +283,7 @@ export default {
|
|
|
|
|
if (this.site_rec !== this.records.site) { |
|
|
|
|
await this.saveSite(); |
|
|
|
|
} |
|
|
|
|
this.constructor_params.domain = this.domain; |
|
|
|
|
await call_api_post("set-site-data", this.constructor_params); |
|
|
|
|
this.saved_constructor_params = this.constructor_params; |
|
|
|
|
this.updSettingsComponent(); |
|
|
|
@ -306,11 +307,15 @@ export default {
|
|
|
|
|
records: function (val) { |
|
|
|
|
if (val) { |
|
|
|
|
this.wallet_rec = val.wallet; |
|
|
|
|
if (!this.site_rec || val.site) { |
|
|
|
|
this.site_rec = val.site; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
site_rec() { |
|
|
|
|
if (this.$refs.site_settings) { |
|
|
|
|
this.$refs.site_settings.set_site_rec(this.site_rec); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
saved_constructor_params() { |
|
|
|
|
this.$refs.site_settings.saved_constructor_params = |
|
|
|
|