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 {
...
@@ -84,9 +84,6 @@ export default {
return
fullPath
;
return
fullPath
;
},
},
hasGroups
()
{
return
Object
.
keys
(
this
.
group
.
subGroups
).
length
>
0
;
},
},
},
};
};
</
script
>
</
script
>
...
@@ -99,7 +96,7 @@ export default {
...
@@ -99,7 +96,7 @@ export default {
>
>
<div
class=
"controls"
>
<div
class=
"controls"
>
<a
<a
v-
show
=
"group.canEdit"
v-
if
=
"group.canEdit"
class=
"edit-group btn"
class=
"edit-group btn"
:href=
"group.editPath"
>
:href=
"group.editPath"
>
<i
aria-hidden=
"true"
class=
"fa fa-cogs"
></i>
<i
aria-hidden=
"true"
class=
"fa fa-cogs"
></i>
...
@@ -127,22 +124,22 @@ export default {
...
@@ -127,22 +124,22 @@ export default {
</div>
</div>
<div
class=
"folder-toggle-wrap"
>
<div
class=
"folder-toggle-wrap"
>
<span
class=
"folder-caret"
>
<span
class=
"folder-caret"
v-if=
"group.hasSubgroups"
>
<i
<i
v-
show
=
"group.isOpen"
v-
if
=
"group.isOpen"
class=
"fa fa-caret-down"
/>
class=
"fa fa-caret-down"
/>
<i
<i
v-
show
=
"!group.isOpen"
v-
if
=
"!group.isOpen"
class=
"fa fa-caret-right"
/>
class=
"fa fa-caret-right"
/>
</span>
</span>
<span
class=
"folder-icon"
>
<span
class=
"folder-icon"
>
<i
<i
v-
show
=
"group.isOpen"
v-
if
=
"group.isOpen"
class=
"fa fa-folder-open"
class=
"fa fa-folder-open"
aria-hidden=
"true"
></i>
aria-hidden=
"true"
></i>
<i
<i
v-
show
=
"!group.isOpen"
v-
if
=
"!group.isOpen"
class=
"fa fa-folder"
></i>
class=
"fa fa-folder"
></i>
</span>
</span>
</div>
</div>
...
@@ -161,6 +158,6 @@ export default {
...
@@ -161,6 +158,6 @@ export default {
{{
group
.
description
}}
{{
group
.
description
}}
</div>
</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>
</li>
</
template
>
</
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