Skip to content

Commit 0f1c668

Browse files
committed
Merge branch 'screenshot' into stage
2 parents 0288d50 + dbabcf8 commit 0f1c668

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

django/main/urls.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818
settings.MEDIA_URL,
1919
document_root=settings.MEDIA_ROOT
2020
)
21+
urlpatterns += static(
22+
'/downloads',
23+
document_root=settings.MEDIA_ROOT
24+
)

vue/src/components/SnapshotList.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
<v-list-item-action style="margin:0 0 4px 0; align-self: flex-end;">
3030
<v-btn icon
3131
v-if="snapshot.screenshot"
32-
v-on:click.stop=""
33-
:href="djangobaseurl + '/media/' + snapshot.screenshot + '?download'"
34-
target="_blank">
32+
v-on:click.stop="function(){}"
33+
:href="djangobaseurl + '/downloads/' + snapshot.screenshot">
3534
<v-icon color="grey lighten-1" >mdi-download</v-icon>
3635
</v-btn>
3736
</v-list-item-action>

0 commit comments

Comments
 (0)