Merge pull request #22478 from autodesk-forks/nikolarAutodesk/entity-feedback_defaultResponse
[plugin/feedback-entity] Improvements to Feedback Plugin UI
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ export const FeedbackResponseDialog = (props: FeedbackResponseDialogProps) => {
|
||||
<DialogTitle>{feedbackDialogTitle}</DialogTitle>
|
||||
<DialogContent>
|
||||
<FormControl component="fieldset">
|
||||
<FormLabel component="legend">Choose all that applies</FormLabel>
|
||||
<FormLabel component="legend">Choose all that apply</FormLabel>
|
||||
<FormGroup>
|
||||
{feedbackDialogResponses.map(response => (
|
||||
<FormControlLabel
|
||||
|
||||
+7
-3
@@ -80,9 +80,13 @@ export const FeedbackResponseTable = (props: FeedbackResponseTableProps) => {
|
||||
width: '35%',
|
||||
render: (response: ResponseRow) => (
|
||||
<>
|
||||
{response.response?.split(',').map(res => (
|
||||
<Chip key={res} size="small" label={res} />
|
||||
))}
|
||||
{(response.response || '')
|
||||
.split(',')
|
||||
.map(v => v.trim()) // removes whitespace
|
||||
.filter(Boolean) // removes accidental empty entries
|
||||
.map(res => (
|
||||
<Chip key={res} size="small" label={res} />
|
||||
))}
|
||||
</>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user