Sfoglia il codice sorgente

Merge branch '132-unfiltered-list-flickers-on-image-data-update' into 'master'

Resolve "unfiltered list flickers on image data update"

Closes #132

See merge request troebs/pycs!118
Eric Tröbs 3 anni fa
parent
commit
7eff7f53c4
1 ha cambiato i file con 11 aggiunte e 9 eliminazioni
  1. 11 9
      webui/src/components/media/paginated-media.vue

+ 11 - 9
webui/src/components/media/paginated-media.vue

@@ -96,15 +96,17 @@ export default {
       }
 
       // edited file is in the current image list
-      for (let image of this.images) {
-        if (image.identifier === file.identifier) {
-          this.get(() => {
-            // click the first image if the current shown was removed
-            if (this.current.identifier === file.identifier) {
-              this.$emit('click', this.images[0]);
-            }
-          });
-          return;
+      if (this.filter !== false) {
+        for (let image of this.images) {
+          if (image.identifier === file.identifier) {
+            this.get(() => {
+              // click the first image if the current shown was removed
+              if (this.current.identifier === file.identifier) {
+                this.$emit('click', this.images[0]);
+              }
+            });
+            return;
+          }
         }
       }
     },