mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
Batch Edit: Fix the persistent isBatchDialog state that causes the edit control to remain hidden after batch preview. #271
This commit is contained in:
@@ -232,14 +232,12 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
this.isBatchDialog = !!data.isBatchDialog;
|
||||
|
||||
if (data.view) {
|
||||
this.showView(data.view, data.index);
|
||||
} else {
|
||||
this.showThumbs(data.models, data.index, data);
|
||||
|
||||
if (data.isBatchDialog) {
|
||||
this.isBatchDialog = data.isBatchDialog;
|
||||
}
|
||||
}
|
||||
},
|
||||
// Pauses the lightbox slideshow and any videos that are playing.
|
||||
@@ -1461,6 +1459,7 @@ export default {
|
||||
onReset() {
|
||||
this.resetControls();
|
||||
this.resetModels();
|
||||
this.isBatchDialog = false;
|
||||
},
|
||||
// Resets the state of the lightbox controls.
|
||||
resetControls() {
|
||||
|
Reference in New Issue
Block a user