Commit 6f88402f authored by Jacob Schatz's avatar Jacob Schatz

Changes raw to download for binary files.

parent 04304d5f
...@@ -9,6 +9,11 @@ const RepoFileButtons = { ...@@ -9,6 +9,11 @@ const RepoFileButtons = {
mixins: [RepoMixin], mixins: [RepoMixin],
computed: { computed: {
rawDownloadButtonLabel() {
return this.binary ? 'Download' : 'Raw';
},
editableBorder() { editableBorder() {
return this.editMode ? '1px solid rgb(31, 120, 209)' : '1px solid rgb(240,240,240)'; return this.editMode ? '1px solid rgb(31, 120, 209)' : '1px solid rgb(240,240,240)';
}, },
...@@ -40,7 +45,7 @@ export default RepoFileButtons; ...@@ -40,7 +45,7 @@ export default RepoFileButtons;
<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 raw">Raw</a> <a :href="rawFileURL" target="_blank" class="btn btn-default raw">{{rawDownloadButtonLabel}}</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">Blame</a> <a :href="blameFileURL" class="btn btn-default blame">Blame</a>
......
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