Skip to content

Commit

Permalink
[694] Add support for deletable in the frontend
Browse files Browse the repository at this point in the history
Bug: #694
Signed-off-by: Guillaume Coutable <guillaume.coutable@obeo.fr>
  • Loading branch information
gcoutable committed Sep 24, 2021
1 parent ae64b89 commit 4968e97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
7 changes: 1 addition & 6 deletions frontend/src/form/Form.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,5 @@ export interface ListItem {
label: string;
kind: string;
imageURL: string;
action: ListItemAction;
}

export interface ListItemAction {
tooltip: string;
iconName: 'DeleteIcon' | 'CheckIcon';
deletable: boolean;
}
5 changes: 1 addition & 4 deletions frontend/src/form/FormEventFragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ export const formRefreshedEventPayloadFragment = gql`
label
kind
imageURL
action {
tooltip
iconName
}
deletable
}
}
}
Expand Down
7 changes: 1 addition & 6 deletions frontend/src/form/FormEventFragments.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,5 @@ export interface GQLListItem {
id: string;
label: string;
imageURL: string;
action: GQLListItemAction;
}

export interface GQLListItemAction {
tooltip: string;
iconName: string;
deletable: Boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ export const ListPropertySection = ({ widget, subscribers, readonly, setSelectio
imageURL: '',
label: 'None',
kind: 'Unknown',
action: {
tooltip: 'no Action',
iconName: 'CheckIcon',
},
deletable: false,
});
}

Expand Down Expand Up @@ -84,6 +81,7 @@ export const ListPropertySection = ({ widget, subscribers, readonly, setSelectio
) : null}
{item.label}
</TableCell>
{/* <TableCell align="right">{getAction(item)}</TableCell> */}
</TableRow>
))}
</TableBody>
Expand Down

0 comments on commit 4968e97

Please sign in to comment.