Commit 7c2299a0 authored by Sarah GP's avatar Sarah GP

Basic link removal

parent e03ab73f
...@@ -158,6 +158,7 @@ export default { ...@@ -158,6 +158,7 @@ export default {
:container-measurements="measurements" :container-measurements="measurements"
:highlighted-job="hoveredJobName" :highlighted-job="hoveredJobName"
:metrics-config="metricsConfig" :metrics-config="metricsConfig"
:never-show-links="true"
default-link-color="gl-stroke-transparent" default-link-color="gl-stroke-transparent"
@error="onError" @error="onError"
@highlightedJobsChange="updateHighlightedJobs" @highlightedJobsChange="updateHighlightedJobs"
......
...@@ -20,6 +20,11 @@ export default { ...@@ -20,6 +20,11 @@ export default {
type: Array, type: Array,
required: true, required: true,
}, },
neverShowLinks: {
type: Boolean,
required: false,
default: false
},
}, },
data() { data() {
return { return {
...@@ -43,9 +48,25 @@ export default { ...@@ -43,9 +48,25 @@ export default {
}, 0); }, 0);
}, },
showAlert() { showAlert() {
/*
This is a hard override that allows us to turn off the links without
needing to remove the component entirely for iteration or based on graph type.
*/
if (this.neverShowLinks) {
return false;
}
return !this.containerZero && !this.showLinkedLayers && !this.alertDismissed; return !this.containerZero && !this.showLinkedLayers && !this.alertDismissed;
}, },
showLinkedLayers() { showLinkedLayers() {
/*
This is a hard override that allows us to turn off the links without
needing to remove the component entirely for iteration or based on graph type.
*/
if (this.neverShowLinks) {
return false;
}
return ( return (
!this.containerZero && (this.showLinksOverride || this.numGroups < this.$options.MAX_GROUPS) !this.containerZero && (this.showLinksOverride || this.numGroups < this.$options.MAX_GROUPS)
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment