summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-08-06 17:09:54 +0530
committerkushalpandya <kushal@gitlab.com>2017-08-07 15:47:35 +0530
commit2c580be2ee667cd42e5e7d215d10a8b48365dd82 (patch)
treeb379958adcf112d6676b69c7978a844a657616dc
parent697f603552eefb7a44485169952e266fa0e5890a (diff)
downloadgitlab-ce-2c580be2ee667cd42e5e7d215d10a8b48365dd82.tar.gz
Clean up unused variables, use computed props
-rw-r--r--app/views/shared/groups/_group.html.haml10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/views/shared/groups/_group.html.haml b/app/views/shared/groups/_group.html.haml
index 87948e884a7..f9ef7cbb6eb 100644
--- a/app/views/shared/groups/_group.html.haml
+++ b/app/views/shared/groups/_group.html.haml
@@ -1,9 +1,3 @@
-- group_member = local_assigns[:group_member]
-- full_name = true unless local_assigns[:full_name] == false
-- group_name = full_name ? group.full_name : group.name
-- css_class = '' unless local_assigns[:css_class]
-- css_class += " no-description" if group.description.blank?
-
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'groups'
@@ -11,8 +5,8 @@
#dashboard-group-app{ data: { endpoint: dashboard_groups_path(format: :json, parent_id: group.id), path: dashboard_groups_path } }
.groups-list-loading
= icon('spinner spin', 'v-show' => 'isLoading')
- %template{ 'v-if' => '!isLoading && isEmpty' }
+ %template{ 'v-if' => 'isGroupsListEmpty' }
%div{ 'v-cloak' => true }
= render 'shared/groups/empty_state'
- %template{ 'v-else-if' => '!isLoading && !isEmpty' }
+ %template{ 'v-else-if' => 'isGroupsListLoaded' }
%groups-component{ ':groups' => 'state.groups', ':page-info' => 'state.pageInfo' }