✨ Site > File > Add download
This commit is contained in:
@@ -11,6 +11,14 @@ export default
|
||||
Viewer
|
||||
},
|
||||
|
||||
computed:
|
||||
{
|
||||
project()
|
||||
{
|
||||
return this.$store.state.projects.current
|
||||
}
|
||||
},
|
||||
|
||||
data()
|
||||
{
|
||||
return {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user