Skip to content
Snippets Groups Projects
Commit cb9f4dfe authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: upated aria text for bulk download

parent d4dab6b5
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@
PIN_DATASET: 'Toggle pinning dataset',
TEXT_INPUT_SEARCH_REGION: 'Search for any region of interest in the atlas selected',
CLEAR_SELECTED_REGION: 'Clear selected region',
BULK_DOWNLOAD: `Download all pinned data`,
NO_BULK_DOWNLOAD: `No datasets pinned`,
// overlay/layout specific
SELECT_ATLAS: 'Atlas',
......
......@@ -2,9 +2,10 @@ import { Component, Input, OnChanges, Pipe, PipeTransform, ChangeDetectionStrate
import { BACKENDURL } from 'src/util/constants'
import { IDataEntry } from "src/services/stateStore.service";
import { getKgSchemaIdFromFullId } from "../util/getKgSchemaIdFromFullId.pipe";
import { ARIA_LABELS } from 'common/constants'
const ARIA_LABEL_HAS_DOWNLOAD = `Bulk download all favourited datasets`
const ARIA_LABEL_HAS_NO_DOWNLOAD = `No favourite datasets to download`
const ARIA_LABEL_HAS_DOWNLOAD = ARIA_LABELS.BULK_DOWNLOAD
const ARIA_LABEL_HAS_NO_DOWNLOAD = ARIA_LABELS.NO_BULK_DOWNLOAD
@Component({
selector: 'iav-datamodule-bulkdownload-cmp',
......
......@@ -13,7 +13,7 @@
<button mat-icon-button
[attr.aria-label]="ariaLabel"
[ngClass]="{'text-muted': kgIds.length === 0}"
[matTooltip]="kgIds.length === 0 ? 'No favourite datasets to download' : 'Bulk download all favourited datasets'"
[matTooltip]="ariaLabel"
(click)="kgIds.length === 0 ? null : bulkDlForm.submit()">
<i class="fas fa-download"></i>
</button>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment