Frontend: Fix download in photo viewer #895

This commit is contained in:
Michael Mayer 2021-01-17 14:05:50 +01:00
parent 7fe9d04b3d
commit f6081d9b3f

View file

@ -38,7 +38,6 @@ import countries from "options/countries.json";
import { $gettext } from "common/vm";
import Clipboard from "common/clipboard";
import download from "common/download";
import Notify from "../common/notify";
export const SrcManual = "manual";
export const CodecAvc1 = "avc1";
@ -409,8 +408,6 @@ export class Photo extends RestModel {
}
downloadAll() {
Notify.success(this.$gettext("Downloading…"));
if (!this.Files) {
download(
`/api/v1/dl/${this.mainFileHash()}?t=${config.downloadToken()}`,