|
580 | 580 | </div>
|
581 | 581 | </div>
|
582 | 582 | </div>
|
| 583 | + <!-- ignore files --> |
| 584 | + <div> |
| 585 | + <label class="mr-2" for="computationTemplate.metadata.output.ignore.visualization">Ignore files in visualization</label> |
| 586 | + <div class="d-flex form-group"> |
| 587 | + <div class="flex-grow-1"> |
| 588 | + <ul id="visualizationIgnore" v-if="ignoreVisualizationDefined"> |
| 589 | + <li v-for="item in computationTemplate.metadata.output.ignore.visualization" :key="item"> |
| 590 | + {{ item }} <b-icon icon="x" @click="removeIgnoreVisualization(item)"></b-icon> |
| 591 | + </li> |
| 592 | + </ul> |
| 593 | + <input type="text" class="form-control" v-model="outputIgnoreVisualization"> |
| 594 | + <b-button class="btn mb-3" @click="addIgnoreVisualization()" v-tooltip.top-center="'Add Ignore to Visualization'"> |
| 595 | + <b-icon icon="plus" aria-hidden="true"></b-icon> |
| 596 | + </b-button> |
| 597 | + </div> |
| 598 | + </div> |
| 599 | + <label class="mr-2" for="computationTemplate.metadata.output.ignore.download">Ignore files in download</label> |
| 600 | + <div class="d-flex form-group"> |
| 601 | + <div class="flex-grow-1"> |
| 602 | + <ul id="visualizationIgnore" v-if="ignoreDownloadDefined"> |
| 603 | + <li v-for="item in computationTemplate.metadata.output.ignore.download" :key="item"> |
| 604 | + {{ item }} <b-icon icon="x" @click="removeIgnoreDownload(item)"></b-icon> |
| 605 | + </li> |
| 606 | + </ul> |
| 607 | + <input type="text" class="form-control" v-model="outputIgnoreDownload"> |
| 608 | + <b-button class="btn mb-3" @click="addIgnoreDownload()" v-tooltip.top-center="'Add Ignore to Download'"> |
| 609 | + <b-icon icon="plus" aria-hidden="true"></b-icon> |
| 610 | + </b-button> |
| 611 | + </div> |
| 612 | + </div> |
| 613 | + </div> |
583 | 614 | <!-- csv -->
|
584 | 615 | <div>
|
585 | 616 | <div class="d-flex">
|
@@ -1279,6 +1310,8 @@ export default {
|
1279 | 1310 | validationRunning: false,
|
1280 | 1311 | classValidity: '',
|
1281 | 1312 | signifyChange: true,
|
| 1313 | + outputIgnoreVisualization: '', |
| 1314 | + outputIgnoreDownload: '', |
1282 | 1315 | };
|
1283 | 1316 | },
|
1284 | 1317 | computed: {
|
@@ -1642,6 +1675,22 @@ export default {
|
1642 | 1675 | this.$forceUpdate();
|
1643 | 1676 | },
|
1644 | 1677 | },
|
| 1678 | + ignoreVisualizationDefined: { |
| 1679 | + get() { |
| 1680 | + return (typeof this.computationTemplate.metadata !== 'undefined') && |
| 1681 | + (typeof this.computationTemplate.metadata.output !== 'undefined') && |
| 1682 | + (typeof this.computationTemplate.metadata.output.ignore != 'undefined') && |
| 1683 | + (typeof this.computationTemplate.metadata.output.ignore.visualization != 'undefined') |
| 1684 | + }, |
| 1685 | + }, |
| 1686 | + ignoreDownloadDefined: { |
| 1687 | + get() { |
| 1688 | + return (typeof this.computationTemplate.metadata !== 'undefined') && |
| 1689 | + (typeof this.computationTemplate.metadata.output !== 'undefined') && |
| 1690 | + (typeof this.computationTemplate.metadata.output.ignore != 'undefined') && |
| 1691 | + (typeof this.computationTemplate.metadata.output.ignore.download != 'undefined') |
| 1692 | + }, |
| 1693 | + }, |
1645 | 1694 | },
|
1646 | 1695 | watch: {
|
1647 | 1696 | computationTemplate: {
|
@@ -2200,6 +2249,49 @@ export default {
|
2200 | 2249 | }
|
2201 | 2250 | this.computationTemplate.metadata.output.csv.push(outputConfig);
|
2202 | 2251 | },
|
| 2252 | + //TODO merge visualization and download |
| 2253 | + addIgnoreVisualization() { |
| 2254 | + //output-ignore-visualization-input |
| 2255 | + if (typeof this.computationTemplate.metadata === 'undefined') { |
| 2256 | + this.$set(this.computationTemplate, 'metadata', { }); |
| 2257 | + } |
| 2258 | + if (typeof this.computationTemplate.metadata.output === 'undefined') { |
| 2259 | + this.$set(this.computationTemplate.metadata, 'output', { }); |
| 2260 | + } |
| 2261 | + if (typeof this.computationTemplate.metadata.output.ignore === 'undefined') { |
| 2262 | + this.$set(this.computationTemplate.metadata.output, 'ignore', { }); |
| 2263 | + } |
| 2264 | + if (typeof this.computationTemplate.metadata.output.ignore.visualization === 'undefined') { |
| 2265 | + this.$set(this.computationTemplate.metadata.output.ignore, 'visualization', []); |
| 2266 | + } |
| 2267 | + this.computationTemplate.metadata.output.ignore.visualization.push(this.outputIgnoreVisualization); |
| 2268 | + this.outputIgnoreVisualization = ''; |
| 2269 | + }, |
| 2270 | + removeIgnoreVisualization(ignoreItem) { |
| 2271 | + const itemIndex = this.computationTemplate.metadata.output.ignore.visualization.indexOf(ignoreItem); |
| 2272 | + this.computationTemplate.metadata.output.ignore.visualization.splice(itemIndex, 1); |
| 2273 | + }, |
| 2274 | + addIgnoreDownload() { |
| 2275 | + //output-ignore-visualization-input |
| 2276 | + if (typeof this.computationTemplate.metadata === 'undefined') { |
| 2277 | + this.$set(this.computationTemplate, 'metadata', { }); |
| 2278 | + } |
| 2279 | + if (typeof this.computationTemplate.metadata.output === 'undefined') { |
| 2280 | + this.$set(this.computationTemplate.metadata, 'output', { }); |
| 2281 | + } |
| 2282 | + if (typeof this.computationTemplate.metadata.output.ignore === 'undefined') { |
| 2283 | + this.$set(this.computationTemplate.metadata.output, 'ignore', { }); |
| 2284 | + } |
| 2285 | + if (typeof this.computationTemplate.metadata.output.ignore.download === 'undefined') { |
| 2286 | + this.$set(this.computationTemplate.metadata.output.ignore, 'download', []); |
| 2287 | + } |
| 2288 | + this.computationTemplate.metadata.output.ignore.download.push(this.outputIgnoreDownload); |
| 2289 | + this.outputIgnoreDownload = ''; |
| 2290 | + }, |
| 2291 | + removeIgnoreDownload(ignoreItem) { |
| 2292 | + const itemIndex = this.computationTemplate.metadata.output.ignore.download.indexOf(ignoreItem); |
| 2293 | + this.computationTemplate.metadata.output.ignore.download.splice(itemIndex, 1); |
| 2294 | + }, |
2203 | 2295 | addCsvPlot(csvConfigIndex) {
|
2204 | 2296 | const plotConfig = {
|
2205 | 2297 | key: 'y-key',
|
|
0 commit comments