diff --git a/assets/svg/blocked.svg b/assets/svg/blocked.svg deleted file mode 100644 index 4d2914f4c..000000000 --- a/assets/svg/blocked.svg +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/UI/Image/AttributedImage.svelte b/src/UI/Image/AttributedImage.svelte index a15950899..6984966f4 100644 --- a/src/UI/Image/AttributedImage.svelte +++ b/src/UI/Image/AttributedImage.svelte @@ -3,11 +3,10 @@ * Shows an image with attribution */ import ImageAttribution from "./ImageAttribution.svelte" - import { ImmutableStore, Store } from "../../Logic/UIEventSource" + import { ImmutableStore, Store, UIEventSource } from "../../Logic/UIEventSource" import type { HotspotProperties, ProvidedImage } from "../../Logic/ImageProviders/ImageProvider" import { Mapillary } from "../../Logic/ImageProviders/Mapillary" - import { UIEventSource } from "../../Logic/UIEventSource" import { MagnifyingGlassPlusIcon } from "@babeard/svelte-heroicons/outline" import { CloseButton } from "flowbite-svelte" import ImageOperations from "./ImageOperations.svelte" @@ -24,15 +23,9 @@ import Panorama360 from "../../assets/svg/Panorama360.svelte" import { ExternalLinkIcon } from "@rgossiaux/svelte-heroicons/solid" import { ExclamationTriangle as TriangleOutline } from "@babeard/svelte-heroicons/outline/ExclamationTriangle" - import LoginToggle from "../Base/LoginToggle.svelte" export let image: Partial & { id: string; url: string } - let fallbackImage: string = undefined - if (image?.provider === Mapillary.singleton) { - fallbackImage = "./assets/svg/blocked.svg" - } - let imgEl: HTMLImageElement export let imgClass: string = undefined export let state: ThemeViewState = undefined export let attributionFormat: "minimal" | "medium" | "large" = "medium" @@ -147,6 +140,7 @@ Not found This image is probably incorrect or deleted. + {image.url} {:else}
@@ -191,7 +185,6 @@ {/if} (loaded = true)} class={imgClass ?? ""} class:cursor-zoom-in={canZoom}