Commit a452b4e2 authored by Kev's avatar Kev

Move maxDisplayWeight to $options

parent 56eeffa5
...@@ -53,7 +53,6 @@ export default { ...@@ -53,7 +53,6 @@ export default {
hasValidInput: true, hasValidInput: true,
shouldShowEditField: false, shouldShowEditField: false,
collapsedAfterUpdate: false, collapsedAfterUpdate: false,
maxDisplayWeight: MAX_DISPLAY_WEIGHT,
}; };
}, },
computed: { computed: {
...@@ -135,6 +134,7 @@ export default { ...@@ -135,6 +134,7 @@ export default {
eventHub.$emit('updateWeight', '', this.id); eventHub.$emit('updateWeight', '', this.id);
}, },
}, },
maxDisplayWeight: MAX_DISPLAY_WEIGHT,
}; };
</script> </script>
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
<gl-loading-icon v-if="fetching" class="js-weight-collapsed-loading-icon" /> <gl-loading-icon v-if="fetching" class="js-weight-collapsed-loading-icon" />
<span v-else class="js-weight-collapsed-weight-label"> <span v-else class="js-weight-collapsed-weight-label">
{{ collapsedWeightLabel {{ collapsedWeightLabel
}}<template v-if="weight > maxDisplayWeight" }}<template v-if="weight > $options.maxDisplayWeight"
>&hellip;</template >&hellip;</template
> >
</span> </span>
......
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