mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-22 18:18:39 +00:00
Frontend: Add focus management and view hooks to location dialog #5313
This commit is contained in:
parent
0452663717
commit
c8ed4a924d
1 changed files with 3 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
|||
@after-enter="afterEnter"
|
||||
@after-leave="afterLeave"
|
||||
>
|
||||
<v-card :tile="$vuetify.display.xs">
|
||||
<v-card ref="content" tabindex="-1" :tile="$vuetify.display.xs">
|
||||
<v-toolbar v-if="$vuetify.display.xs" flat color="navigation" class="mb-4" density="compact">
|
||||
<v-btn icon @click.stop="close">
|
||||
<v-icon>mdi-close</v-icon>
|
||||
|
|
@ -207,11 +207,13 @@ export default {
|
|||
}
|
||||
},
|
||||
afterEnter() {
|
||||
this.$view.enter(this);
|
||||
if (this.currentLat && this.currentLng && !(this.currentLat === 0 && this.currentLng === 0)) {
|
||||
this.fetchLocationInfo(this.currentLat, this.currentLng);
|
||||
}
|
||||
},
|
||||
afterLeave() {
|
||||
this.$view.leave(this);
|
||||
this.location = null;
|
||||
this.locationLoading = false;
|
||||
this.resetSearchState();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue