Put error.svg in assets
parent
98937d8a3c
commit
579176c084
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
@ -40,8 +40,8 @@
|
||||||
<script>
|
<script>
|
||||||
import * as dav from "../services/DavRequests";
|
import * as dav from "../services/DavRequests";
|
||||||
import constants from "../mixins/constants"
|
import constants from "../mixins/constants"
|
||||||
|
import errorsvg from "../assets/error.svg";
|
||||||
import { getPreviewUrl } from "../services/FileUtils";
|
import { getPreviewUrl } from "../services/FileUtils";
|
||||||
import { generateUrl } from '@nextcloud/router'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Photo',
|
name: 'Photo',
|
||||||
|
@ -71,7 +71,7 @@ export default {
|
||||||
if (this.data.flag & constants.FLAG_PLACEHOLDER) {
|
if (this.data.flag & constants.FLAG_PLACEHOLDER) {
|
||||||
return undefined;
|
return undefined;
|
||||||
} else if (this.data.flag & constants.FLAG_LOAD_FAIL) {
|
} else if (this.data.flag & constants.FLAG_LOAD_FAIL) {
|
||||||
return generateUrl('apps/memories/img/error.svg');
|
return errorsvg;
|
||||||
} else {
|
} else {
|
||||||
return getPreviewUrl(this.data.fileid, this.data.etag);
|
return getPreviewUrl(this.data.fileid, this.data.etag);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue