Skip to content

Commit

Permalink
#218 disabled adding preload panel at all, if there is no preload scr…
Browse files Browse the repository at this point in the history
…ipt (previously it was hidden)
  • Loading branch information
bugy committed Mar 10, 2023
1 parent 04a8201 commit 9327b45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web-src/src/main-app/components/scripts/script-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ScheduleButton v-if="schedulable" :disabled="!enableScheduleButton" @click="openSchedule"/>
</div>
<LogPanel v-show="showLog && !hasErrors && !hideExecutionControls" ref="logPanel" :outputFormat="outputFormat"/>
<LogPanel v-show="preloadOutput && !showLog && !hasErrors && !hideExecutionControls"
<LogPanel v-if="preloadOutput && !showLog && !hasErrors && !hideExecutionControls"
ref="preloadOutputPanel"
:output-format="preloadOutputFormat"/>
<div v-if="hasErrors" v-show="!hideExecutionControls" class="validation-panel">
Expand Down Expand Up @@ -384,7 +384,11 @@ export default {
preloadOutput: {
handler(newValue, _) {
this.$refs.preloadOutputPanel.setLog(newValue)
this.$nextTick(() => {
if (this.$refs.preloadOutputPanel) {
this.$refs.preloadOutputPanel.setLog(newValue);
}
})
}
},
Expand Down

0 comments on commit 9327b45

Please sign in to comment.