BigW Consortium Gitlab

Correct button names

parent 78c4a275
...@@ -15,7 +15,7 @@ export default class RepoFileButtons { ...@@ -15,7 +15,7 @@ export default class RepoFileButtons {
mixins: [RepoMiniMixin], mixins: [RepoMiniMixin],
template: ` template: `
<div id='repo-file-buttons' v-if='isMini' :style='{"border-bottom": editableBorder}'> <div id='repo-file-buttons' v-if='isMini' :style='{"border-bottom": editableBorder}'>
<a :href='rawFileURL' target='_blank' class='btn btn-default'>Download file</a> <a :href='rawFileURL' target='_blank' class='btn btn-default'>Raw</a>
<div class="btn-group" role="group" aria-label="File actions"> <div class="btn-group" role="group" aria-label="File actions">
<a :href='blameFileUrl' class='btn btn-default'>Blame</a> <a :href='blameFileUrl' class='btn btn-default'>Blame</a>
<a :href='historyFileUrl' class='btn btn-default'>History</a> <a :href='historyFileUrl' class='btn btn-default'>History</a>
......
...@@ -55,7 +55,7 @@ const RepoStore = { ...@@ -55,7 +55,7 @@ const RepoStore = {
toggleRawPreview() { toggleRawPreview() {
this.activeFile.raw = !this.activeFile.raw; this.activeFile.raw = !this.activeFile.raw;
this.activeFileLabel = this.activeFile.raw ? 'Preview' : 'Raw'; this.activeFileLabel = this.activeFile.raw ? 'Display rendered file' : 'Display source';
}, },
setActiveFiles(file) { setActiveFiles(file) {
...@@ -92,7 +92,7 @@ const RepoStore = { ...@@ -92,7 +92,7 @@ const RepoStore = {
setActiveToRaw() { setActiveToRaw() {
this.activeFile.raw = false; this.activeFile.raw = false;
// can't get vue to listen to raw for some reason so this for now. // can't get vue to listen to raw for some reason so this for now.
this.activeFileLabel = 'Raw'; this.activeFileLabel = 'Display source';
}, },
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
......
import RepoHelper from './repo_helper';
import RepoStore from './repo_store'; import RepoStore from './repo_store';
const RepoTab = { const RepoTab = {
...@@ -27,7 +28,7 @@ const RepoTab = { ...@@ -27,7 +28,7 @@ const RepoTab = {
}, },
methods: { methods: {
tabClicked: RepoStore.setActiveFiles, tabClicked: RepoStore.setActiveFiles.bind(RepoStore),
xClicked(file) { xClicked(file) {
if (file.changed) return; if (file.changed) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment