mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-06 11:56:15 +08:00
Upgrade to Vue 3 (#331)
* Dependency updates * Upgrade to Vue 3 (WIP) * Fix reactivity of imported domains (the object gets replaced by a proxy) * Cleaner access of proxy for domain imports * Remove upgrade note about reactivity issue * Fix locale switching * Remove upgrade note about language issue * Patch Vue 3 issues with pretty-checkbox-vue * Remove upgrade note about checkbox issue * Fix extra slot for checkboxes and radios * Set checkmark as default for extra slot * Use patched pretty-checkbox-vue from do-vue * Fix removing domains * Switch to main do-vue/do-bulma
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2021 DigitalOcean
|
||||
Copyright 2022 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
@@ -104,9 +104,9 @@ export default (query, domains, global, nextTick) => new Promise(resolve => {
|
||||
}
|
||||
|
||||
// Create a new domain (assume it has had custom user settings)
|
||||
const domainImported = clone(Domain.delegated);
|
||||
// Push transforms the object to a proxy, so re-fetch the proxy from the array
|
||||
const domainImported = domains[domains.push(clone(Domain.delegated)) - 1];
|
||||
domainImported.hasUserInteraction = true;
|
||||
domains.push(domainImported);
|
||||
|
||||
// Apply the initial values on the next Vue tick, once the watchers are ready
|
||||
nextTick(() => applyCategories(data.domains[i], domainImported));
|
||||
|
||||
Reference in New Issue
Block a user