-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MTV-1880] Fix 'Project' select issues, add 'Plan name' back to step …
…1 of migration plan wizard Signed-off-by: Jeff Puzzo <[email protected]>
- Loading branch information
Showing
16 changed files
with
168 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
packages/forklift-console-plugin/src/components/common/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './ProjectNameSelect'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...forklift-console-plugin/src/modules/Plans/views/create/components/ProvidersEmptyState.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import { ProvidersAddButton } from 'src/modules/Providers'; | ||
import { ForkliftTrans, useForkliftTranslation } from 'src/utils'; | ||
|
||
import { | ||
EmptyState, | ||
EmptyStateActions, | ||
EmptyStateBody, | ||
EmptyStateFooter, | ||
EmptyStateHeader, | ||
EmptyStateIcon, | ||
} from '@patternfly/react-core'; | ||
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon'; | ||
|
||
interface ProviderCardEmptyStateProps { | ||
projectName: string; | ||
} | ||
|
||
export const ProviderCardEmptyState: React.FC<ProviderCardEmptyStateProps> = ({ projectName }) => { | ||
const { t } = useForkliftTranslation(); | ||
|
||
return ( | ||
<EmptyState> | ||
<EmptyStateHeader | ||
titleText={t('No providers found')} | ||
headingLevel="h4" | ||
icon={<EmptyStateIcon icon={SearchIcon} />} | ||
/> | ||
<EmptyStateBody> | ||
<ForkliftTrans> | ||
{projectName} project does not contain any providers. To select a source provider, create | ||
a provider in this project or select a different project. | ||
</ForkliftTrans> | ||
</EmptyStateBody> | ||
<EmptyStateFooter> | ||
<EmptyStateActions> | ||
<ProvidersAddButton buttonProps={{ variant: 'link' }} /> | ||
</EmptyStateActions> | ||
</EmptyStateFooter> | ||
</EmptyState> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.