diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-01-08 20:45:34 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-01-08 20:48:27 +0000 |
commit | 7e3405d76cbd683ea557835c4cd96af9bda9cf4c (patch) | |
tree | 1163011d9b749ab2b3966878b266dffbde625102 /app/assets/javascripts/groups/components | |
parent | 349d06688fa956732390e15cefc9006a1dd1bf8c (diff) | |
download | gitlab-ce-7e3405d76cbd683ea557835c4cd96af9bda9cf4c.tar.gz |
Fix last eslint rules
Diffstat (limited to 'app/assets/javascripts/groups/components')
-rw-r--r-- | app/assets/javascripts/groups/components/item_actions.vue | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/app/assets/javascripts/groups/components/item_actions.vue b/app/assets/javascripts/groups/components/item_actions.vue index 0dd0783ce06..1bde6ae5185 100644 --- a/app/assets/javascripts/groups/components/item_actions.vue +++ b/app/assets/javascripts/groups/components/item_actions.vue @@ -1,56 +1,56 @@ <script> -import { s__ } from '~/locale'; -import tooltip from '~/vue_shared/directives/tooltip'; -import icon from '~/vue_shared/components/icon.vue'; -import modal from '~/vue_shared/components/modal.vue'; -import eventHub from '../event_hub'; -import { COMMON_STR } from '../constants'; + import { s__ } from '~/locale'; + import tooltip from '~/vue_shared/directives/tooltip'; + import icon from '~/vue_shared/components/icon.vue'; + import modal from '~/vue_shared/components/modal.vue'; + import eventHub from '../event_hub'; + import { COMMON_STR } from '../constants'; -export default { - components: { - icon, - modal, - }, - directives: { - tooltip, - }, - props: { - parentGroup: { - type: Object, - required: false, - default: () => ({}), + export default { + components: { + icon, + modal, }, - group: { - type: Object, - required: true, + directives: { + tooltip, }, - }, - data() { - return { - modalStatus: false, - }; - }, - computed: { - leaveBtnTitle() { - return COMMON_STR.LEAVE_BTN_TITLE; + props: { + parentGroup: { + type: Object, + required: false, + default: () => ({}), + }, + group: { + type: Object, + required: true, + }, }, - editBtnTitle() { - return COMMON_STR.EDIT_BTN_TITLE; + data() { + return { + modalStatus: false, + }; }, - leaveConfirmationMessage() { - return s__(`GroupsTree|Are you sure you want to leave the "${this.group.fullName}" group?`); + computed: { + leaveBtnTitle() { + return COMMON_STR.LEAVE_BTN_TITLE; + }, + editBtnTitle() { + return COMMON_STR.EDIT_BTN_TITLE; + }, + leaveConfirmationMessage() { + return s__(`GroupsTree|Are you sure you want to leave the "${this.group.fullName}" group?`); + }, }, - }, - methods: { - onLeaveGroup() { - this.modalStatus = true; + methods: { + onLeaveGroup() { + this.modalStatus = true; + }, + leaveGroup() { + this.modalStatus = false; + eventHub.$emit('leaveGroup', this.group, this.parentGroup); + }, }, - leaveGroup() { - this.modalStatus = false; - eventHub.$emit('leaveGroup', this.group, this.parentGroup); - }, - }, -}; + }; </script> <template> |