Skip to content

Commit

Permalink
feat: make submit workflow parameter form as textarea to input multi …
Browse files Browse the repository at this point in the history
…line string easily (#7768)

Signed-off-by: krrrr38 <[email protected]>
  • Loading branch information
krrrr38 authored Feb 7, 2022
1 parent 427394b commit fb73d01
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const ClusterWorkflowTemplateDetails = ({history, location, match}: Route
)}
</>
{template && (
<SlidingPanel isShown={!!sidePanel} onClose={() => setSidePanel(null)} isNarrow={true}>
<SlidingPanel isShown={!!sidePanel} onClose={() => setSidePanel(null)} isMiddle={true}>
<SubmitWorkflowPanel
kind='ClusterWorkflowTemplate'
namespace={namespace}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const WorkflowTemplateDetails = ({history, location, match}: RouteCompone
{!template ? <Loading /> : <WorkflowTemplateEditor template={template} onChange={setTemplate} onError={setError} onTabSelected={setTab} selectedTabKey={tab} />}
</>
{template && (
<SlidingPanel isShown={!!sidePanel} onClose={() => setSidePanel(null)} isNarrow={sidePanel === 'submit'}>
<SlidingPanel isShown={!!sidePanel} onClose={() => setSidePanel(null)} isMiddle={sidePanel === 'submit'}>
{sidePanel === 'submit' && (
<SubmitWorkflowPanel
kind='WorkflowTemplate'
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/workflows/components/submit-workflow-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class SubmitWorkflowPanel extends React.Component<Props, State> {

private displayInputFieldForSingleValue(parameter: Parameter) {
return (
<input
<textarea
className='argo-field'
value={this.getValue(parameter)}
onChange={event => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ interface Props {
const AttributeRow = (attr: {title: string; value: any}) => (
<div className='row white-box__details-row' key={attr.title}>
<div className='columns small-4'>{attr.title}</div>
<div className='columns columns--narrower-height small-8'>{attr.value}</div>
<div className='columns columns--narrower-height small-8' style={{whiteSpace: 'pre'}}>
{attr.value}
</div>
</div>
);
const AttributeRows = (props: {attributes: {title: string; value: any}[]}) => (
Expand Down

0 comments on commit fb73d01

Please sign in to comment.