Commit 2d3e5fbd authored by Mark Florian's avatar Mark Florian

Extract object literals from template

parent 9aae10a3
......@@ -236,6 +236,8 @@ export default {
},
statusTimeRanges,
safeHtmlConfig: { ADD_TAGS: ['gl-emoji'] },
actionPrimary: { text: s__('SetStatusModal|Set status') },
actionCancel: { text: s__('SetStatusModal|Remove status') },
};
</script>
......@@ -243,8 +245,8 @@ export default {
<gl-modal
:title="s__('SetStatusModal|Set a status')"
:modal-id="modalId"
:action-primary="{ text: s__('SetStatusModal|Set status') }"
:action-cancel="{ text: s__('SetStatusModal|Remove status') }"
:action-primary="$options.actionPrimary"
:action-cancel="$options.actionCancel"
modal-class="set-user-status-modal"
@shown="setupEmojiListAndAutocomplete"
@hide="hideEmojiMenu"
......
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