Commit a452b4e2 authored by Kev's avatar Kev

Move maxDisplayWeight to $options

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