diff --git a/.vscode/settings.json b/.vscode/settings.json
index 6175abb..47bb789 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -18,6 +18,7 @@
"[vue-html]": {
"editor.defaultFormatter": "octref.vetur"
},
+ "files.autoSave": "off",
"breadcrumbs.symbolSortOrder": "type",
"editor.codeLens": true,
"editor.detectIndentation": true,
diff --git a/site/.vuepress/components/CodeList.vue b/site/.vuepress/components/CodeList.vue
index fa33c4b..47409e7 100644
--- a/site/.vuepress/components/CodeList.vue
+++ b/site/.vuepress/components/CodeList.vue
@@ -71,6 +71,10 @@ export default {
value: c.identifier,
}));
},
+ emitChangeEvent() {
+ const selectedCodes = this.availableCodes.filter((c) => c.selected);
+ this.onSelectionChanged(selectedCodes);
+ },
loadPreset(identifier) {
if (
(this.stageLoaderSelected || this.availableCodes.find((c) => c.selected)) &&
@@ -86,7 +90,7 @@ export default {
this.unselectStageLoader();
this.refreshDisabledCodes();
- this.onSelectionChanged(this.availableCodes.filter((c) => c.selected));
+ this.emitChangeEvent();
this.generation++;
},
getPresetPlaceholder() {
@@ -116,7 +120,7 @@ export default {
this.stageLoaderSelected = newState;
this.onStageLoaderToggle(newState);
this.refreshDisabledCodes();
- this.onSelectionChanged(this.availableCodes.filter((c) => c.selected));
+ this.emitChangeEvent();
},
refreshDisabledCodes() {
for (const code of this.availableCodes) {
@@ -150,7 +154,7 @@ export default {
code.selected = code.disabled ? false : !code.selected;
this.refreshDisabledCodes();
- this.onSelectionChanged(this.availableCodes.filter((c) => c.selected));
+ this.emitChangeEvent();
},
populate() {
this.availableCodes = this.codes.map((c) => ({ ...c, selected: false }));
diff --git a/site/.vuepress/components/Generator.vue b/site/.vuepress/components/Generator.vue
index f3a9baa..5ba1b45 100644
--- a/site/.vuepress/components/Generator.vue
+++ b/site/.vuepress/components/Generator.vue
@@ -23,8 +23,6 @@
/>
-
-