|
@@ -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;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|