Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove map icon #57

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}