diff --git a/package-lock.json b/package-lock.json index 14337481b..3d6dd9eb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.20.3", + "version": "1.20.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.20.3", + "version": "1.20.4", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 376b0077b..cc09e2edb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.20.3", + "version": "1.20.4", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", diff --git a/src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx b/src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx index d58993707..1e9cb8b2d 100644 --- a/src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx +++ b/src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx @@ -45,6 +45,7 @@ export const ContextSwitcher = ({ optionListError, reloadOptionList, classNamePrefix, + resource, }: ContextSwitcherTypes) => { const selectRef = useRef>(null) const shouldShowToastRef = useRef(true) @@ -60,7 +61,7 @@ export const ContextSwitcher = ({ if (shouldShowToastRef.current) { ToastManager.showToast({ variant: ToastVariantType.shortcut, - text: 'to switch Applications', + text: `to switch ${resource}`, shortcuts: ['S'], }) } diff --git a/src/Shared/Components/ContextSwitcher/types.ts b/src/Shared/Components/ContextSwitcher/types.ts index 7be803ee4..465bb1563 100644 --- a/src/Shared/Components/ContextSwitcher/types.ts +++ b/src/Shared/Components/ContextSwitcher/types.ts @@ -36,6 +36,7 @@ export interface ContextSwitcherTypes > { options: GroupBase>[] isAppDataAvailable?: boolean + resource: 'Cluster' | 'Release' | 'Tenant' | 'Application' | 'Job' | 'Application Group' | 'Chart Store' } export interface RecentlyVisitedOptions extends SelectPickerOptionType {