Fix saving settings for sites that inherit configurations from a different site
This commit is contained in:
parent
e67b5a227f
commit
77fcced776
@ -437,6 +437,7 @@ export default {
|
|||||||
switch (componentValue) {
|
switch (componentValue) {
|
||||||
case 'fs':
|
case 'fs':
|
||||||
return 'fullscreen only';
|
return 'fullscreen only';
|
||||||
|
case 'enabled':
|
||||||
case 'theater':
|
case 'theater':
|
||||||
return 'where possible';
|
return 'where possible';
|
||||||
case 'disabled':
|
case 'disabled':
|
||||||
|
@ -368,7 +368,8 @@ export class SiteSettings {
|
|||||||
this.settings.active.sites[this.site].type = 'unknown';
|
this.settings.active.sites[this.site].type = 'unknown';
|
||||||
} else {
|
} else {
|
||||||
if (!this.settings.active.sites[this.site] || this.settings.active.sites[this.site].autocreated) {
|
if (!this.settings.active.sites[this.site] || this.settings.active.sites[this.site].autocreated) {
|
||||||
this.settings.active.sites[this.site] = _cp(this.settings.active.sites['@empty']);
|
this.settings.active.sites[this.site] = _cp(this.data);
|
||||||
|
this.settings.active.sites[this.site].type = 'user-defined';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user