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
Boxiang Sun
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
Hide 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
>
<
script
>
import
{
s__
}
from
'
../../locale
'
;
import
{
s__
}
from
'
~/locale
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
import
modal
from
'
../../vue_shared/components/modal.vue
'
;
import
icon
from
'
~/vue_shared/components/icon.vue
'
;
import
modal
from
'
~/vue_shared/components/modal.vue
'
;
import
eventHub
from
'
../event_hub
'
;
import
eventHub
from
'
../event_hub
'
;
import
{
COMMON_STR
}
from
'
../constants
'
;
import
{
COMMON_STR
}
from
'
../constants
'
;
import
Icon
from
'
../../vue_shared/components/icon.vue
'
;
export
default
{
export
default
{
components
:
{
components
:
{
I
con
,
i
con
,
modal
,
modal
,
},
},
directives
:
{
directives
:
{
...
@@ -65,9 +65,7 @@ export default {
...
@@ -65,9 +65,7 @@ export default {
:aria-label=
"editBtnTitle"
:aria-label=
"editBtnTitle"
data-container=
"body"
data-container=
"body"
class=
"edit-group btn no-expand"
>
class=
"edit-group btn no-expand"
>
<icon
<icon
name=
"settings"
/>
name=
"settings"
>
</icon>
</a>
</a>
<a
<a
v-tooltip
v-tooltip
...
@@ -78,9 +76,7 @@ export default {
...
@@ -78,9 +76,7 @@ export default {
:aria-label=
"leaveBtnTitle"
:aria-label=
"leaveBtnTitle"
data-container=
"body"
data-container=
"body"
class=
"leave-group btn no-expand"
>
class=
"leave-group btn no-expand"
>
<i
<icon
name=
"leave"
/>
class=
"fa fa-sign-out"
aria-hidden=
"true"
/>
</a>
</a>
<modal
<modal
v-show=
"modalStatus"
v-show=
"modalStatus"
...
...
app/assets/javascripts/groups/components/item_type_icon.vue
View file @
95ff4613
<
script
>
<
script
>
import
icon
from
'
~/vue_shared/components/icon.vue
'
;
import
{
ITEM_TYPE
}
from
'
../constants
'
;
import
{
ITEM_TYPE
}
from
'
../constants
'
;
export
default
{
export
default
{
components
:
{
icon
,
},
props
:
{
props
:
{
itemType
:
{
itemType
:
{
type
:
String
,
type
:
String
,
...
@@ -16,9 +20,9 @@ export default {
...
@@ -16,9 +20,9 @@ export default {
computed
:
{
computed
:
{
iconClass
()
{
iconClass
()
{
if
(
this
.
itemType
===
ITEM_TYPE
.
GROUP
)
{
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 {
...
@@ -26,9 +30,6 @@ export default {
<
template
>
<
template
>
<span
class=
"item-type-icon"
>
<span
class=
"item-type-icon"
>
<i
<icon
:name=
"iconClass"
/>
:class=
"iconClass"
class=
"fa"
aria-hidden=
"true"
/>
</span>
</span>
</
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