Commit 051f66d6 authored by Frédéric Caplette's avatar Frédéric Caplette Committed by Sarah Groff Hennigh-Palermo

Remove unused warning in pipeline graph

We had a computer prop `alert()` to decide which alert
to render based on some conditions. We had errors and warnings,
but we removed warnings and forgot to remove the unused property.
This removes the unused code.
parent 6df996a1
...@@ -64,13 +64,6 @@ export default { ...@@ -64,13 +64,6 @@ export default {
hasHighlightedJob() { hasHighlightedJob() {
return Boolean(this.highlightedJob); return Boolean(this.highlightedJob);
}, },
alert() {
if (this.hasError) {
return this.failure;
}
return this.warning;
},
failure() { failure() {
switch (this.failureType) { switch (this.failureType) {
case DRAW_FAILURE: case DRAW_FAILURE:
...@@ -210,11 +203,11 @@ export default { ...@@ -210,11 +203,11 @@ export default {
<div> <div>
<gl-alert <gl-alert
v-if="hasError" v-if="hasError"
:variant="alert.variant" :variant="failure.variant"
:dismissible="alert.dismissible" :dismissible="failure.dismissible"
@dismiss="alert.dismissible ? resetFailure : null" @dismiss="resetFailure"
> >
{{ alert.text }} {{ failure.text }}
</gl-alert> </gl-alert>
<div <div
v-if="!hideGraph" v-if="!hideGraph"
......
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