File tree Expand file tree Collapse file tree
resources/js/components/modals Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ import PhotoService from "@/services/photo-service";
4646import { useRouter } from " vue-router" ;
4747import { usePhotoRoute } from " @/composables/photo/photoRoute" ;
4848import Textarea from " ../forms/basic/Textarea.vue" ;
49+ import AlbumService from " @/services/album-service" ;
4950
5051const visible = defineModel (" visible" , { default: false }) as Ref <boolean >;
5152const emits = defineEmits <{ refresh: [] }>();
@@ -59,6 +60,8 @@ function submit() {
5960 PhotoService .importFromUrl (urls .value .split (" \n " ), getParentId () ?? null ).then (() => {
6061 urls .value = " " ;
6162 visible .value = false ;
63+ // Clear cache for the parent album to ensure the new photos are displayed
64+ AlbumService .clearCache (getParentId () ?? " unsorted" );
6265 emits (" refresh" );
6366 });
6467}
You can’t perform that action at this time.
0 commit comments