Skip to content

Commit

Permalink
Merge pull request #14 from conterra/bugfix_non-ui-workflow
Browse files Browse the repository at this point in the history
Bugfix non UI workflow
  • Loading branch information
matthiasstein authored Dec 4, 2023
2 parents fb8212f + 0476eef commit 038bfdd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
7 changes: 7 additions & 0 deletions src/main/js/bundles/dn_printingenhanced/LayoutWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@
v-if="visibleUiElements.scaleEnabled"
md12
>
<div
v-if="!scaleEnabled && !visibleUiElements.printPreviewCheckbox"
aria-live="polite"
class="ct-message ct-message--info mt-2"
>
{{ i18n.helperTextScaleEnabled }}
</div>
<v-checkbox
v-model="scaleEnabledValue"
:label="i18n.scaleEnabled"
Expand Down
14 changes: 7 additions & 7 deletions src/main/js/bundles/dn_printingenhanced/MapOnlyWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@
v-if="visibleUiElements.scaleEnabled"
md12
>
<div
v-if="!scaleEnabled && !visibleUiElements.printPreviewCheckbox"
aria-live="polite"
class="ct-message ct-message--info mt-2"
>
{{ i18n.helperTextScaleEnabled }}
</div>
<v-checkbox
v-model="scaleEnabledValue"
:label="i18n.scaleEnabled"
Expand Down Expand Up @@ -194,13 +201,6 @@
class="pa-0 ma-0"
/>
</v-flex>
<div
v-if="!scaleEnabled"
aria-live="polite"
class="ct-message ct-message--info mt-2"
>
{{ i18n.helperTextScaleEnabled }}
</div>
</v-layout>
</v-container>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@
type: Boolean,
default: true
},
printPreviewInitallyVisible:{
type: Boolean,
default: null
},
activeTab: {
type: Number,
default: 0
Expand All @@ -240,7 +244,10 @@
},
scaleEnabled: function(scaleEnabled) {
if (scaleEnabled === false) {
this.enablePrintPreview=false;
this.enablePrintPreview = false;
}
if (scaleEnabled && !this.visibleUiElements.printPreviewCheckbox) {
this.enablePrintPreview = this.printPreviewInitallyVisible;
}
}
},
Expand All @@ -250,6 +257,9 @@
} else {
this.activeTab = 0;
}
if (!this.visibleUiElements.printPreviewCheckbox) {
this.printPreviewInitallyVisible = this.enablePrintPreview;
}
this.$emit('startup');
},
methods: {
Expand Down

0 comments on commit 038bfdd

Please sign in to comment.