Site > File > Add download

This commit is contained in:
brunosimon
2017-08-30 22:48:24 +02:00
parent cc038157d7
commit 9d450fc0a1
18 changed files with 29 additions and 19 deletions
+8
View File
@@ -11,6 +11,14 @@ export default
Viewer
},
computed:
{
project()
{
return this.$store.state.projects.current
}
},
data()
{
return {
+1
View File
@@ -2,6 +2,7 @@
<header>
<a href="#" @click.prevent="onDifferencesClick">Differences <span v-if="differencesActive">(on)</span></a>
<a href="#" @click.prevent="onVersionsClick">Versions <span v-if="versionsActive">(on)</span></a>
<a :href="`${project.slug}/files/${content.path.full}`" download>Download</a>
{{ content.path.directory }} {{ content.name }}
</header>
<versions :file="content" :content="content.versions" v-if="versionsActive"></versions>
@@ -1,5 +1,6 @@
<div>
{{ project.name }}
<a :href="`${project.slug}/download`" download>Download</a>
<files-tree></files-tree>
<file v-if="file" :content="file"></file>