Skip to content

Commit 653de21

Browse files
Mary Hippmaryhipp
authored andcommitted
use different release notes link for non-local
1 parent b17f6c9 commit 653de21

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

invokeai/frontend/web/src/features/ui/components/CanvasV2Announcement.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
import { ExternalLink, Flex, ListItem, UnorderedList } from '@invoke-ai/ui-library';
22
import { useTranslation } from 'react-i18next';
3+
import { useAppSelector } from '../../../app/store/storeHooks';
4+
import { createSelector } from '@reduxjs/toolkit';
5+
import { selectConfigSlice } from '../../system/store/configSlice';
6+
7+
const selectIsLocal = createSelector(selectConfigSlice, (config) => config.isLocal);
38

49
export const CanvasV2Announcement = () => {
510
const { t } = useTranslation();
11+
const isLocal = useAppSelector(selectIsLocal);
12+
613
return (
714
<Flex gap={4} flexDir="column">
815
<UnorderedList fontSize="sm">
@@ -15,7 +22,11 @@ export const CanvasV2Announcement = () => {
1522
fontSize="sm"
1623
fontWeight="semibold"
1724
label={t('whatsNew.canvasV2Announcement.readReleaseNotes')}
18-
href="https://github.com/invoke-ai/InvokeAI/releases/tag/v5.0.0"
25+
href={
26+
isLocal
27+
? 'https://github.com/invoke-ai/InvokeAI/releases/tag/v5.0.0'
28+
: 'https://support.invoke.ai/support/solutions/articles/151000178246'
29+
}
1930
/>
2031
<ExternalLink
2132
fontSize="sm"

0 commit comments

Comments
 (0)