BigW Consortium Gitlab

Correct button names

parent 78c4a275
......@@ -15,7 +15,7 @@ export default class RepoFileButtons {
mixins: [RepoMiniMixin],
template: `
<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">
<a :href='blameFileUrl' class='btn btn-default'>Blame</a>
<a :href='historyFileUrl' class='btn btn-default'>History</a>
......
......@@ -55,7 +55,7 @@ const RepoStore = {
toggleRawPreview() {
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) {
......@@ -92,7 +92,7 @@ const RepoStore = {
setActiveToRaw() {
this.activeFile.raw = false;
// 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 */
......
import RepoHelper from './repo_helper';
import RepoStore from './repo_store';
const RepoTab = {
......@@ -27,7 +28,7 @@ const RepoTab = {
},
methods: {
tabClicked: RepoStore.setActiveFiles,
tabClicked: RepoStore.setActiveFiles.bind(RepoStore),
xClicked(file) {
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