feat(board): show multi-select hint
This commit is contained in:
2 files changed
+6
-2
No files matched your search
@@ -49,7 +49,7 @@ export const BoardSelectionToolbar = () => {
|
|||||||
const appMap = new Map((selectableApps ?? []).map((app) => [app.id, app]));
|
const appMap = new Map((selectableApps ?? []).map((app) => [app.id, app]));
|
||||||
|
|
||||||
// Sort items so apps appear first
|
// Sort items so apps appear first
|
||||||
const sortedSelectedItems = [...selectedItems].sort((itemA, itemB) => {
|
const sortedSelectedItems = selectedItems.toSorted((itemA, itemB) => {
|
||||||
if (itemA.kind === "app" && itemB.kind !== "app") return -1;
|
if (itemA.kind === "app" && itemB.kind !== "app") return -1;
|
||||||
if (itemA.kind !== "app" && itemB.kind === "app") return 1;
|
if (itemA.kind !== "app" && itemB.kind === "app") return 1;
|
||||||
return 0;
|
return 0;
|
||||||
@@ -201,6 +201,10 @@ export const BoardSelectionToolbar = () => {
|
|||||||
</HoverCard.Dropdown>
|
</HoverCard.Dropdown>
|
||||||
</HoverCard>
|
</HoverCard>
|
||||||
|
|
||||||
|
<Text size="xs" c="dimmed" visibleFrom="sm" maw={220} lh={1.25}>
|
||||||
|
{t("app.action.select.multiSelectTip")}
|
||||||
|
</Text>
|
||||||
|
|
||||||
<Divider orientation="vertical" />
|
<Divider orientation="vertical" />
|
||||||
|
|
||||||
{/* Actions */}
|
{/* Actions */}
|
||||||
|
|||||||
@@ -822,7 +822,7 @@
|
|||||||
"toggle": "Click to select",
|
"toggle": "Click to select",
|
||||||
"selected": "Selected",
|
"selected": "Selected",
|
||||||
"multiple": "Add {count}",
|
"multiple": "Add {count}",
|
||||||
"multiSelectTip": "Tip: Hold Shift or Ctrl / ⌘ to select multiple apps at once",
|
"multiSelectTip": "Tip: Hold Ctrl / ⌘ to select multiple apps at once",
|
||||||
"selectedCount": "{count, plural, one {# selected} other {# selected}}",
|
"selectedCount": "{count, plural, one {# selected} other {# selected}}",
|
||||||
"appsSelected": "{count, plural, one {# app selected} other {# apps selected}}",
|
"appsSelected": "{count, plural, one {# app selected} other {# apps selected}}",
|
||||||
"customApplication": "Custom application",
|
"customApplication": "Custom application",
|
||||||
|
|||||||
Reference in new issue
Block a user