summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo/components/repo_tab.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/repo/components/repo_tab.vue')
-rw-r--r--app/assets/javascripts/repo/components/repo_tab.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/repo/components/repo_tab.vue b/app/assets/javascripts/repo/components/repo_tab.vue
index caabf5d4b1b..0d0c34ec741 100644
--- a/app/assets/javascripts/repo/components/repo_tab.vue
+++ b/app/assets/javascripts/repo/components/repo_tab.vue
@@ -18,8 +18,8 @@ const RepoTab = {
},
changedClass() {
const tabChangedObj = {
- 'fa-times': !this.tab.changed,
- 'fa-circle': this.tab.changed,
+ 'fa-times close-icon': !this.tab.changed,
+ 'fa-circle unsaved-icon': this.tab.changed,
};
return tabChangedObj;
},
@@ -39,11 +39,11 @@ export default RepoTab;
</script>
<template>
-<li>
+<li @click="tabClicked(tab)">
<a
href="#0"
class="close"
- @click.prevent="closeTab(tab)"
+ @click.stop.prevent="closeTab(tab)"
:aria-label="closeLabel">
<i
class="fa"