Skip to content

Commit

Permalink
Merge pull request #1287 from avniproject/WIP
Browse files Browse the repository at this point in the history
#1181 & #1280 UI fixes
  • Loading branch information
himeshr authored Aug 1, 2024
2 parents 8706c7c + 4d5c6af commit d985c2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/adminApp/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,12 @@ const SubjectTypeSyncAttributeShow = ({ subjectType, syncConceptValueMap, ...pro
const ConceptSyncAttributeShow = ({ subjectType, syncConceptValueMap, syncAttributeName, ...props }) => {
const syncSettings = get(props.record, ["syncSettings", subjectType.name], {});
const conceptUUID = get(syncSettings, [syncAttributeName]);
const syncConceptName = subjectType[syncAttributeName].name;
if (isEmpty(conceptUUID)) return null;

return (
<div>
<span style={{ color: "rgba(0, 0, 0, 0.54)", fontSize: "12px", marginRight: 10 }}>{startCase(syncAttributeName)}</span>
<span style={{ color: "rgba(0, 0, 0, 0.54)", fontSize: "12px", marginRight: 10 }}>{startCase(syncConceptName)}</span>
{map(get(syncSettings, `${syncAttributeName}Values`, []), value => (
<Chip style={{ margin: "0.2em" }} label={syncConceptValueMap.get(value) || value} key={value} />
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const CreateEditDashboard = ({ edit, history, operationalModules, getOperational
{getErrorByKey(error, "EMPTY_NAME")}
<p />
<AvniTextField
style={{ width: "12em" }}
multiline
id="description"
label="Dashboard Description"
Expand Down
2 changes: 1 addition & 1 deletion src/formDesigner/components/Dashboard/SelectCardsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const SelectCardsView = ({ dashboardSection, addCards }) => {
return (
<div>
<Grid container spacing={2}>
<Grid item xs={10}>
<Grid item xs={10} style={{ zIndex: 2 }}>
<Select
name="addCard"
ref={cardSelectRef}
Expand Down

0 comments on commit d985c2b

Please sign in to comment.