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
3366ff9e
Commit
3366ff9e
authored
May 06, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tooltip to bar buttons
parent
442eb843
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
app/assets/javascripts/ide/components/activity_bar.vue
app/assets/javascripts/ide/components/activity_bar.vue
+23
-2
No files found.
app/assets/javascripts/ide/components/activity_bar.vue
View file @
3366ff9e
<
script
>
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
import
{
activityBarViews
}
from
'
../constants
'
;
export
default
{
components
:
{
Icon
,
},
directives
:
{
tooltip
,
},
computed
:
{
...
mapGetters
([
'
currentProject
'
,
'
hasChanges
'
]),
...
mapState
([
'
currentActivityView
'
]),
...
...
@@ -26,8 +30,12 @@ export default {
<ul
class=
"list-unstyled"
>
<li
v-once
>
<a
v-tooltip
data-container=
"body"
data-placement=
"right"
:href=
"goBackUrl"
class=
"ide-sidebar-link"
:title=
"s__('IDE|Go back')"
:aria-label=
"s__('IDE|Go back')"
>
<icon
...
...
@@ -38,13 +46,17 @@ export default {
</li>
<li>
<button
v-tooltip
data-container=
"body"
data-placement=
"right"
type=
"button"
class=
"ide-sidebar-link js-ide-edit-mode"
:class=
"
{
active: currentActivityView === $options.activityBarViews.edit
}"
@click.prevent="updateActivityBarView($options.activityBarViews.edit)"
:aria-label="s__('IDE|Edit mode')"
:title="s__('IDE|Edit')"
:aria-label="s__('IDE|Edit')"
>
<icon
name=
"code"
...
...
@@ -53,12 +65,17 @@ export default {
</li>
<li>
<button
v-tooltip
data-container=
"body"
data-placement=
"right"
type=
"button"
class=
"ide-sidebar-link js-ide-review-mode"
:class=
"
{
active: currentActivityView === $options.activityBarViews.review
}"
@click.prevent="updateActivityBarView($options.activityBarViews.review)"
:title="s__('IDE|Review')"
:aria-label="s__('IDE|Review')"
>
<icon
name=
"file-modified"
...
...
@@ -67,13 +84,17 @@ export default {
</li>
<li
v-show=
"hasChanges"
>
<button
v-tooltip
data-container=
"body"
data-placement=
"right"
type=
"button"
class=
"ide-sidebar-link js-ide-commit-mode"
:class=
"
{
active: currentActivityView === $options.activityBarViews.commit
}"
@click.prevent="updateActivityBarView($options.activityBarViews.commit)"
:aria-label="s__('IDE|Commit mode')"
:title="s__('IDE|Commit')"
:aria-label="s__('IDE|Commit')"
>
<icon
name=
"commit"
...
...
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