diff --git a/components/button/src/dropdown-button/__tests__/dropdown-button.test.js b/components/button/src/dropdown-button/__tests__/dropdown-button.test.js index a38e8e167a..c9db6a80c9 100644 --- a/components/button/src/dropdown-button/__tests__/dropdown-button.test.js +++ b/components/button/src/dropdown-button/__tests__/dropdown-button.test.js @@ -1,10 +1,10 @@ import { Layer } from '@dhis2-ui/layer' +import { Modal } from '@dhis2-ui/modal' import { Popper } from '@dhis2-ui/popper' import { render, fireEvent, waitFor } from '@testing-library/react' import { mount } from 'enzyme' import React from 'react' import { act } from 'react-dom/test-utils' -import { Modal } from '../../../../modal/src/modal/modal.js' import { Button } from '../../index.js' import { DropdownButton } from '../dropdown-button.js' diff --git a/components/header-bar/i18n/en.pot b/components/header-bar/i18n/en.pot index b24ee470f4..7583f29a58 100644 --- a/components/header-bar/i18n/en.pot +++ b/components/header-bar/i18n/en.pot @@ -5,12 +5,45 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-06-12T03:40:49.012Z\n" -"PO-Revision-Date: 2024-06-12T03:40:49.013Z\n" +"POT-Creation-Date: 2024-12-17T01:42:03.299Z\n" +"PO-Revision-Date: 2024-12-17T01:42:03.300Z\n" msgid "Search apps" msgstr "Search apps" +msgid "Search commands" +msgstr "Search commands" + +msgid "Search shortcuts" +msgstr "Search shortcuts" + +msgid "Search apps, shortcuts, commands" +msgstr "Search apps, shortcuts, commands" + +msgid "Browse apps" +msgstr "Browse apps" + +msgid "Browse commands" +msgstr "Browse commands" + +msgid "Browse shortcuts" +msgstr "Browse shortcuts" + +msgid "Logout" +msgstr "Logout" + +msgid "Top apps" +msgstr "Top apps" + +msgid "All Apps" +msgstr "All Apps" + +msgid "All Commands" +msgstr "All Commands" + +msgid "All Shortcuts" +msgstr "All Shortcuts" + msgid "DHIS2 {{dhis2Version}}" msgstr "DHIS2 {{dhis2Version}}" @@ -62,9 +95,6 @@ msgstr "Help" msgid "About DHIS2" msgstr "About DHIS2" -msgid "Logout" -msgstr "Logout" - msgid "New {{appName}} version available" msgstr "New {{appName}} version available" diff --git a/components/header-bar/src/command-palette/hooks/use-navigation.js b/components/header-bar/src/command-palette/hooks/use-navigation.js index 8cd1a63d8e..a986268337 100644 --- a/components/header-bar/src/command-palette/hooks/use-navigation.js +++ b/components/header-bar/src/command-palette/hooks/use-navigation.js @@ -231,7 +231,7 @@ export const useNavigation = ({ ?.childNodes?.[highlightedIndex]?.click() } else { // open apps, shortcuts link - window.open(itemsArray[highlightedIndex]?.['defaultAction']) + window.location.href = itemsArray[highlightedIndex]?.['defaultAction'] // TODO: execute commands } } diff --git a/components/header-bar/src/command-palette/sections/app-item.js b/components/header-bar/src/command-palette/sections/app-item.js index a258d346ab..13891d5469 100644 --- a/components/header-bar/src/command-palette/sections/app-item.js +++ b/components/header-bar/src/command-palette/sections/app-item.js @@ -7,6 +7,7 @@ function AppItem({ name, path, img, highlighted, handleMouseEnter }) { return (