minor formatting

This commit is contained in:
Matteias Collet 2022-02-22 00:25:49 +00:00 committed by GitHub
parent bee9a4bc35
commit 303a3b85ce
4 changed files with 15 additions and 8 deletions

View file

@ -18,6 +18,7 @@
"[vue-html]": { "[vue-html]": {
"editor.defaultFormatter": "octref.vetur" "editor.defaultFormatter": "octref.vetur"
}, },
"files.autoSave": "off",
"breadcrumbs.symbolSortOrder": "type", "breadcrumbs.symbolSortOrder": "type",
"editor.codeLens": true, "editor.codeLens": true,
"editor.detectIndentation": true, "editor.detectIndentation": true,

View file

@ -71,6 +71,10 @@ export default {
value: c.identifier, value: c.identifier,
})); }));
}, },
emitChangeEvent() {
const selectedCodes = this.availableCodes.filter((c) => c.selected);
this.onSelectionChanged(selectedCodes);
},
loadPreset(identifier) { loadPreset(identifier) {
if ( if (
(this.stageLoaderSelected || this.availableCodes.find((c) => c.selected)) && (this.stageLoaderSelected || this.availableCodes.find((c) => c.selected)) &&
@ -86,7 +90,7 @@ export default {
this.unselectStageLoader(); this.unselectStageLoader();
this.refreshDisabledCodes(); this.refreshDisabledCodes();
this.onSelectionChanged(this.availableCodes.filter((c) => c.selected)); this.emitChangeEvent();
this.generation++; this.generation++;
}, },
getPresetPlaceholder() { getPresetPlaceholder() {
@ -116,7 +120,7 @@ export default {
this.stageLoaderSelected = newState; this.stageLoaderSelected = newState;
this.onStageLoaderToggle(newState); this.onStageLoaderToggle(newState);
this.refreshDisabledCodes(); this.refreshDisabledCodes();
this.onSelectionChanged(this.availableCodes.filter((c) => c.selected)); this.emitChangeEvent();
}, },
refreshDisabledCodes() { refreshDisabledCodes() {
for (const code of this.availableCodes) { for (const code of this.availableCodes) {
@ -150,7 +154,7 @@ export default {
code.selected = code.disabled ? false : !code.selected; code.selected = code.disabled ? false : !code.selected;
this.refreshDisabledCodes(); this.refreshDisabledCodes();
this.onSelectionChanged(this.availableCodes.filter((c) => c.selected)); this.emitChangeEvent();
}, },
populate() { populate() {
this.availableCodes = this.codes.map((c) => ({ ...c, selected: false })); this.availableCodes = this.codes.map((c) => ({ ...c, selected: false }));

View file

@ -23,8 +23,6 @@
/> />
</div> </div>
</section> </section>
<br />
<hr />
<section> <section>
<div v-if="codes && codes.length > 0"> <div v-if="codes && codes.length > 0">
<h3>{{ getLabel('headers.codelist') }}</h3> <h3>{{ getLabel('headers.codelist') }}</h3>
@ -216,7 +214,12 @@ section > div:not(:first-child) {
} }
.config { .config {
position: relative; position: sticky;
top: 58px;
z-index: 999;
padding: 16px 0px;
background: white;
border-bottom: 1px solid #dfdfdf;
} }
.config span { .config span {
@ -227,7 +230,7 @@ section > div:not(:first-child) {
.help { .help {
position: sticky; position: sticky;
top: 80px; top: 90px;
text-align: left; text-align: left;
align-self: flex-start; align-self: flex-start;
width: 100%; width: 100%;

View file

@ -225,7 +225,6 @@ export default {
return; return;
} }
console.log('Generating new Stageloader-Code');
this.onChange( this.onChange(
generateStageLoaderCode( generateStageLoaderCode(
this.fastCodes, this.fastCodes,