summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/groups/components/item_actions.vue
diff options
context:
space:
mode:
authorDennis Tang <dtang@gitlab.com>2019-03-26 00:03:48 +0000
committerDennis Tang <dtang@gitlab.com>2019-06-24 13:05:21 +0200
commit7a4b15214a64478adad96bca1d4d63cc1755abfc (patch)
treef859e22c6222bb699a409ebced5f69267cd0abc8 /app/assets/javascripts/groups/components/item_actions.vue
parent88c8d177f835983a0a47796529906c69376d159d (diff)
downloadgitlab-ce-7a4b15214a64478adad96bca1d4d63cc1755abfc.tar.gz
Improve group list UI
This updates the groups list UI to match the style of the project list: - New layout - Improve loading state when loading group children - Larger, responsive text - Icon and text colors changed to secondary - Smaller button sizes - Content list description colors were standardized to body text
Diffstat (limited to 'app/assets/javascripts/groups/components/item_actions.vue')
-rw-r--r--app/assets/javascripts/groups/components/item_actions.vue28
1 files changed, 14 insertions, 14 deletions
diff --git a/app/assets/javascripts/groups/components/item_actions.vue b/app/assets/javascripts/groups/components/item_actions.vue
index a7995865c77..cafd22731b1 100644
--- a/app/assets/javascripts/groups/components/item_actions.vue
+++ b/app/assets/javascripts/groups/components/item_actions.vue
@@ -44,31 +44,31 @@ export default {
</script>
<template>
- <div class="controls">
+ <div class="controls d-flex justify-content-end">
<a
- v-if="group.canEdit"
+ v-if="group.canLeave"
v-tooltip
- :href="group.editPath"
- :title="editBtnTitle"
- :aria-label="editBtnTitle"
+ :href="group.leavePath"
+ :title="leaveBtnTitle"
+ :aria-label="leaveBtnTitle"
data-container="body"
data-placement="bottom"
- class="edit-group btn no-expand"
+ class="leave-group btn btn-xs no-expand"
+ @click.prevent="onLeaveGroup"
>
- <icon name="settings" />
+ <icon name="leave" css-classes="position-top-0" />
</a>
<a
- v-if="group.canLeave"
+ v-if="group.canEdit"
v-tooltip
- :href="group.leavePath"
- :title="leaveBtnTitle"
- :aria-label="leaveBtnTitle"
+ :href="group.editPath"
+ :title="editBtnTitle"
+ :aria-label="editBtnTitle"
data-container="body"
data-placement="bottom"
- class="leave-group btn no-expand"
- @click.prevent="onLeaveGroup"
+ class="edit-group btn btn-xs no-expand"
>
- <icon name="leave" />
+ <icon name="settings" css-classes="position-top-0" />
</a>
</div>
</template>