Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

### Changed
- Updated button text from to "View sample" in AnnotationDetailsPanel.svelte for better clarity.

### Deprecated

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import Spinner from '$lib/components/Spinner/Spinner.svelte';
import { page } from '$app/state';
import { useAnnotation } from '$lib/hooks/useAnnotation/useAnnotation';
import Button from '$lib/components/ui/button/button.svelte';

const {
annotationId,
Expand Down Expand Up @@ -38,15 +39,15 @@
{#if sample}
<SampleMetadata {sample} showCustomMetadata={false} />

<h2 class="py-2 text-lg font-semibold">
<a
href={routeHelpers.toSample({
sampleId: sample.sample_id,
datasetId: sample.dataset_id
})}
>Check all sample annotations
</a>
</h2>
<Button
variant="secondary"
href={routeHelpers.toSample({
sampleId: sample.sample_id,
datasetId: sample.dataset_id
})}
>
View sample
</Button>
{:else}
<div class="flex h-full w-full items-center justify-center">
<Spinner size="large" align="center" />
Expand Down