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
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
Show 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
>
<
script
>
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
import
{
activityBarViews
}
from
'
../constants
'
;
import
{
activityBarViews
}
from
'
../constants
'
;
export
default
{
export
default
{
components
:
{
components
:
{
Icon
,
Icon
,
},
},
directives
:
{
tooltip
,
},
computed
:
{
computed
:
{
...
mapGetters
([
'
currentProject
'
,
'
hasChanges
'
]),
...
mapGetters
([
'
currentProject
'
,
'
hasChanges
'
]),
...
mapState
([
'
currentActivityView
'
]),
...
mapState
([
'
currentActivityView
'
]),
...
@@ -26,8 +30,12 @@ export default {
...
@@ -26,8 +30,12 @@ export default {
<ul
class=
"list-unstyled"
>
<ul
class=
"list-unstyled"
>
<li
v-once
>
<li
v-once
>
<a
<a
v-tooltip
data-container=
"body"
data-placement=
"right"
:href=
"goBackUrl"
:href=
"goBackUrl"
class=
"ide-sidebar-link"
class=
"ide-sidebar-link"
:title=
"s__('IDE|Go back')"
:aria-label=
"s__('IDE|Go back')"
:aria-label=
"s__('IDE|Go back')"
>
>
<icon
<icon
...
@@ -38,13 +46,17 @@ export default {
...
@@ -38,13 +46,17 @@ export default {
</li>
</li>
<li>
<li>
<button
<button
v-tooltip
data-container=
"body"
data-placement=
"right"
type=
"button"
type=
"button"
class=
"ide-sidebar-link js-ide-edit-mode"
class=
"ide-sidebar-link js-ide-edit-mode"
:class=
"
{
:class=
"
{
active: currentActivityView === $options.activityBarViews.edit
active: currentActivityView === $options.activityBarViews.edit
}"
}"
@click.prevent="updateActivityBarView($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
<icon
name=
"code"
name=
"code"
...
@@ -53,12 +65,17 @@ export default {
...
@@ -53,12 +65,17 @@ export default {
</li>
</li>
<li>
<li>
<button
<button
v-tooltip
data-container=
"body"
data-placement=
"right"
type=
"button"
type=
"button"
class=
"ide-sidebar-link js-ide-review-mode"
class=
"ide-sidebar-link js-ide-review-mode"
:class=
"
{
:class=
"
{
active: currentActivityView === $options.activityBarViews.review
active: currentActivityView === $options.activityBarViews.review
}"
}"
@click.prevent="updateActivityBarView($options.activityBarViews.review)"
@click.prevent="updateActivityBarView($options.activityBarViews.review)"
:title="s__('IDE|Review')"
:aria-label="s__('IDE|Review')"
>
>
<icon
<icon
name=
"file-modified"
name=
"file-modified"
...
@@ -67,13 +84,17 @@ export default {
...
@@ -67,13 +84,17 @@ export default {
</li>
</li>
<li
v-show=
"hasChanges"
>
<li
v-show=
"hasChanges"
>
<button
<button
v-tooltip
data-container=
"body"
data-placement=
"right"
type=
"button"
type=
"button"
class=
"ide-sidebar-link js-ide-commit-mode"
class=
"ide-sidebar-link js-ide-commit-mode"
:class=
"
{
:class=
"
{
active: currentActivityView === $options.activityBarViews.commit
active: currentActivityView === $options.activityBarViews.commit
}"
}"
@click.prevent="updateActivityBarView($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
<icon
name=
"commit"
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