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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
95ff4613
Commit
95ff4613
authored
Dec 22, 2017
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SVG sprite icons
parent
86e0d931
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
app/assets/javascripts/groups/components/item_actions.vue
app/assets/javascripts/groups/components/item_actions.vue
+7
-11
app/assets/javascripts/groups/components/item_type_icon.vue
app/assets/javascripts/groups/components/item_type_icon.vue
+7
-6
No files found.
app/assets/javascripts/groups/components/item_actions.vue
View file @
95ff4613
<
script
>
import
{
s__
}
from
'
../../locale
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
modal
from
'
../../vue_shared/components/modal.vue
'
;
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
Icon
from
'
../../vue_shared/components/icon.vue
'
;
export
default
{
components
:
{
I
con
,
i
con
,
modal
,
},
directives
:
{
...
...
@@ -65,9 +65,7 @@ export default {
:aria-label=
"editBtnTitle"
data-container=
"body"
class=
"edit-group btn no-expand"
>
<icon
name=
"settings"
>
</icon>
<icon
name=
"settings"
/>
</a>
<a
v-tooltip
...
...
@@ -78,9 +76,7 @@ export default {
:aria-label=
"leaveBtnTitle"
data-container=
"body"
class=
"leave-group btn no-expand"
>
<i
class=
"fa fa-sign-out"
aria-hidden=
"true"
/>
<icon
name=
"leave"
/>
</a>
<modal
v-show=
"modalStatus"
...
...
app/assets/javascripts/groups/components/item_type_icon.vue
View file @
95ff4613
<
script
>
import
icon
from
'
~/vue_shared/components/icon.vue
'
;
import
{
ITEM_TYPE
}
from
'
../constants
'
;
export
default
{
components
:
{
icon
,
},
props
:
{
itemType
:
{
type
:
String
,
...
...
@@ -16,9 +20,9 @@ export default {
computed
:
{
iconClass
()
{
if
(
this
.
itemType
===
ITEM_TYPE
.
GROUP
)
{
return
this
.
isGroupOpen
?
'
f
a-folder-open
'
:
'
fa-
folder
'
;
return
this
.
isGroupOpen
?
'
f
older-open
'
:
'
folder
'
;
}
return
'
fa-
bookmark
'
;
return
'
bookmark
'
;
},
},
};
...
...
@@ -26,9 +30,6 @@ export default {
<
template
>
<span
class=
"item-type-icon"
>
<i
:class=
"iconClass"
class=
"fa"
aria-hidden=
"true"
/>
<icon
:name=
"iconClass"
/>
</span>
</
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