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

Extract object literals from template

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