|
@@ -20,7 +20,7 @@
|
|
|
export let albums: AlbumResponseDto[] = [];
|
|
|
|
|
|
let textarea: HTMLTextAreaElement;
|
|
|
- let description: string = asset?.exifInfo?.description || '';
|
|
|
+ let description: string;
|
|
|
|
|
|
$: isOwner = $page?.data?.user?.id === asset.ownerId;
|
|
|
|
|
@@ -48,6 +48,12 @@
|
|
|
|
|
|
$: people = asset.people || [];
|
|
|
|
|
|
+ function onNewAsset(newAsset){
|
|
|
+ description = newAsset?.exifInfo?.description || '';
|
|
|
+ }
|
|
|
+
|
|
|
+ $: onNewAsset(asset);
|
|
|
+
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
|
|
const getMegapixel = (width: number, height: number): number | undefined => {
|