mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(app): migrate app parent view to react [EE-5361] (#10086)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
531f88b947
commit
841ca1ebd4
42 changed files with 1448 additions and 810 deletions
|
@ -15,7 +15,7 @@ type Props = {
|
|||
tableState: TableState<TableSettings>;
|
||||
isLoading: boolean;
|
||||
'data-cy': string;
|
||||
noWidget: boolean;
|
||||
noWidget?: boolean;
|
||||
};
|
||||
|
||||
export function EventsDatatable({
|
||||
|
|
|
@ -11,9 +11,10 @@ import { BETeaserButton } from '@@/BETeaserButton';
|
|||
type Props = {
|
||||
identifier: string;
|
||||
data: string;
|
||||
hideMessage?: boolean;
|
||||
};
|
||||
|
||||
export function YAMLInspector({ identifier, data }: Props) {
|
||||
export function YAMLInspector({ identifier, data, hideMessage }: Props) {
|
||||
const [expanded, setExpanded] = useState(false);
|
||||
const yaml = useMemo(() => cleanYamlUnwantedFields(data), [data]);
|
||||
|
||||
|
@ -21,7 +22,11 @@ export function YAMLInspector({ identifier, data }: Props) {
|
|||
<div>
|
||||
<WebEditorForm
|
||||
value={yaml}
|
||||
placeholder="Define or paste the content of your manifest here"
|
||||
placeholder={
|
||||
hideMessage
|
||||
? undefined
|
||||
: 'Define or paste the content of your manifest here'
|
||||
}
|
||||
readonly
|
||||
hideTitle
|
||||
id={identifier}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue