metadata: reset state when invalidated

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/900/head
Varun Patil 2023-10-29 12:18:13 -07:00
parent 42f32350d9
commit 79d8a8675c
1 changed files with 5 additions and 5 deletions

View File

@ -385,11 +385,7 @@ export default defineComponent({
methods: {
async update(photo: number | IPhoto): Promise<IImageInfo | null> {
this.state = Math.random();
this.loading = 0;
this.error = false;
this.fileid = null;
this.exif = {};
this.invalidate();
// which clusters to get
const clusters = this.routeIsPublic
@ -424,7 +420,11 @@ export default defineComponent({
},
invalidate() {
this.state = Math.random();
this.loading = 0;
this.error = false;
this.fileid = null;
this.exif = {};
},
editDate() {