🐛 Fixing save Collections/Environments on enabling sync
This commit is contained in:
@@ -359,7 +359,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getActiveColor() {
|
getActiveColor() {
|
||||||
// This strips extra spaces and # signs from the strings.
|
// This strips extra spaces and # signs from the strings.
|
||||||
const strip = str => str.replace(/#/g, "").replace(/ /g, "")
|
const strip = (str) => str.replace(/#/g, "").replace(/ /g, "")
|
||||||
return `#${strip(
|
return `#${strip(
|
||||||
window.getComputedStyle(document.documentElement).getPropertyValue("--ac-color")
|
window.getComputedStyle(document.documentElement).getPropertyValue("--ac-color")
|
||||||
).toUpperCase()}`
|
).toUpperCase()}`
|
||||||
@@ -375,10 +375,10 @@ export default {
|
|||||||
toggleSettings(name, value) {
|
toggleSettings(name, value) {
|
||||||
fb.writeSettings(name, !value)
|
fb.writeSettings(name, !value)
|
||||||
if (name === "syncCollections" && value) {
|
if (name === "syncCollections" && value) {
|
||||||
syncCollections()
|
this.syncCollections()
|
||||||
}
|
}
|
||||||
if (name === "syncEnvironments" && value) {
|
if (name === "syncEnvironments" && value) {
|
||||||
syncEnvironments()
|
this.syncEnvironments()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initSettings() {
|
initSettings() {
|
||||||
|
|||||||
Reference in New Issue
Block a user