Skip to content

Commit

Permalink
Merge pull request #57 from ssciwr/remove-map-icon
Browse files Browse the repository at this point in the history
Remove map icon
  • Loading branch information
dokempf authored Oct 7, 2024
2 parents 3c236e6 + 57136cb commit 029fb17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bundle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
</script>
</head>
<body>
<easydb-detail-view id="my-easydb" systemid="e95dcb74-77f6-4794-b468-506da8b7a3a1"/>
<easydb-detail-view id="my-easydb" systemid="6493"/>
</body>
</html>
8 changes: 1 addition & 7 deletions src/components/logic/DetailControls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { appLanguageStore, popSystemID, systemidStore, viewerPanelStateStore } from "../../lib/stores";
import { Button, ButtonGroup, Tooltip } from "flowbite-svelte";
import { BackwardStepOutline, ImageOutline, MapPinAltOutline, RectangleListOutline } from "flowbite-svelte-icons";
import { BackwardStepOutline, ImageOutline, RectangleListOutline } from "flowbite-svelte-icons";
export let data;
Expand Down Expand Up @@ -62,10 +62,4 @@
<Tooltip triggeredBy="#assets-nav" placement="bottom" class="z-10">
{l10n.assettext[$appLanguageStore]}
</Tooltip>
<Button id="map-nav" on:click={() => { viewerPanelStateStore.set("map"); }}>
<MapPinAltOutline class="inline-block w-6 h-6"/>
</Button>
<Tooltip triggeredBy="#map-nav" placement="bottom" class="z-10">
{l10n.maptext[$appLanguageStore]}
</Tooltip>
</ButtonGroup>
5 changes: 3 additions & 2 deletions src/components/logic/ViewerPanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import AssetViewer from "./AssetViewer.svelte";
import HierarchyViewer from "./HierarchyViewer.svelte";
import NotImplemented from "../utils/NotImplemented.svelte";
import "./hierarchy.css";
</script>
Expand All @@ -17,6 +18,6 @@
<div class="hierarchy-viewer">
<HierarchyViewer openids={data._path.map(entry => entry[table]._id)} table={table} root={data._path[0]}/>
</div>
{:else if $viewerPanelStateStore === "map"}
My Map
{:else}
<NotImplemented message="The viewer panel {$viewerPanelStateStore} is unknown."/>
{/if}

0 comments on commit 029fb17

Please sign in to comment.