Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
682df5c5
Commit
682df5c5
authored
May 31, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-show with v-if to conform style guide
parent
b2f18828
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
app/assets/javascripts/groups/components/group_item.vue
app/assets/javascripts/groups/components/group_item.vue
+7
-10
No files found.
app/assets/javascripts/groups/components/group_item.vue
View file @
682df5c5
...
...
@@ -84,9 +84,6 @@ export default {
return
fullPath
;
},
hasGroups
()
{
return
Object
.
keys
(
this
.
group
.
subGroups
).
length
>
0
;
},
},
};
</
script
>
...
...
@@ -99,7 +96,7 @@ export default {
>
<div
class=
"controls"
>
<a
v-
show
=
"group.canEdit"
v-
if
=
"group.canEdit"
class=
"edit-group btn"
:href=
"group.editPath"
>
<i
aria-hidden=
"true"
class=
"fa fa-cogs"
></i>
...
...
@@ -127,22 +124,22 @@ export default {
</div>
<div
class=
"folder-toggle-wrap"
>
<span
class=
"folder-caret"
>
<span
class=
"folder-caret"
v-if=
"group.hasSubgroups"
>
<i
v-
show
=
"group.isOpen"
v-
if
=
"group.isOpen"
class=
"fa fa-caret-down"
/>
<i
v-
show
=
"!group.isOpen"
v-
if
=
"!group.isOpen"
class=
"fa fa-caret-right"
/>
</span>
<span
class=
"folder-icon"
>
<i
v-
show
=
"group.isOpen"
v-
if
=
"group.isOpen"
class=
"fa fa-folder-open"
aria-hidden=
"true"
></i>
<i
v-
show
=
"!group.isOpen"
v-
if
=
"!group.isOpen"
class=
"fa fa-folder"
></i>
</span>
</div>
...
...
@@ -161,6 +158,6 @@ export default {
{{
group
.
description
}}
</div>
<group-folder
v-if=
"group.isOpen &&
hasG
roups"
:groups=
"group.subGroups"
:baseGroup=
"group"
/>
<group-folder
v-if=
"group.isOpen &&
group.hasSubg
roups"
:groups=
"group.subGroups"
:baseGroup=
"group"
/>
</li>
</
template
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment