We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0288d50 + dbabcf8 commit 0f1c668Copy full SHA for 0f1c668
django/main/urls.py
@@ -18,3 +18,7 @@
18
settings.MEDIA_URL,
19
document_root=settings.MEDIA_ROOT
20
)
21
+ urlpatterns += static(
22
+ '/downloads',
23
+ document_root=settings.MEDIA_ROOT
24
+ )
vue/src/components/SnapshotList.vue
@@ -29,9 +29,8 @@
29
<v-list-item-action style="margin:0 0 4px 0; align-self: flex-end;">
30
<v-btn icon
31
v-if="snapshot.screenshot"
32
- v-on:click.stop=""
33
- :href="djangobaseurl + '/media/' + snapshot.screenshot + '?download'"
34
- target="_blank">
+ v-on:click.stop="function(){}"
+ :href="djangobaseurl + '/downloads/' + snapshot.screenshot">
35
<v-icon color="grey lighten-1" >mdi-download</v-icon>
36
</v-btn>
37
</v-list-item-action>
0 commit comments