summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-01 14:17:43 +0100
committerPhil Hughes <me@iamphill.com>2018-06-06 08:33:03 +0100
commit8c3a2c557660b8e2f7f099e066b0480be2a3bc59 (patch)
tree7fed5c59d802999bb668fa8e23ba3039aeb9b02e /app/assets/javascripts/ide
parent1d43689e5aa6bcd4f14bdff9e03540d3b3d8ca37 (diff)
downloadgitlab-ce-8c3a2c557660b8e2f7f099e066b0480be2a3bc59.tar.gz
fixed sidebar button not having active class
Diffstat (limited to 'app/assets/javascripts/ide')
-rw-r--r--app/assets/javascripts/ide/components/panes/right.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/components/panes/right.vue b/app/assets/javascripts/ide/components/panes/right.vue
index 7f4650cce1a..aafd6a15a78 100644
--- a/app/assets/javascripts/ide/components/panes/right.vue
+++ b/app/assets/javascripts/ide/components/panes/right.vue
@@ -17,6 +17,12 @@ export default {
},
computed: {
...mapState(['rightPane']),
+ pipelinesActive() {
+ return (
+ this.rightPane === rightSidebarViews.pipelines ||
+ this.rightPane === rightSidebarViews.jobsDetail
+ );
+ },
},
methods: {
...mapActions(['setRightPane']),
@@ -50,7 +56,7 @@ export default {
:title="__('Pipelines')"
class="ide-sidebar-link is-right"
:class="{
- active: rightPane === $options.rightSidebarViews.pipelines
+ active: pipelinesActive
}"
type="button"
@click="clickTab($event, $options.rightSidebarViews.pipelines)"