Put error.svg in assets

pull/37/head
Varun Patil 2022-09-11 22:28:06 -07:00
parent 98937d8a3c
commit 579176c084
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -40,8 +40,8 @@
<script>
import * as dav from "../services/DavRequests";
import constants from "../mixins/constants"
import errorsvg from "../assets/error.svg";
import { getPreviewUrl } from "../services/FileUtils";
import { generateUrl } from '@nextcloud/router'
export default {
name: 'Photo',
@ -71,7 +71,7 @@ export default {
if (this.data.flag & constants.FLAG_PLACEHOLDER) {
return undefined;
} else if (this.data.flag & constants.FLAG_LOAD_FAIL) {
return generateUrl('apps/memories/img/error.svg');
return errorsvg;
} else {
return getPreviewUrl(this.data.fileid, this.data.etag);
}