Skip to content

Commit a6f3204

Browse files
author
Alexander Evdokimov
committed
Interfaces: Items: IContextMenuItem: removed items prop
1 parent 500829b commit a6f3204

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
## Changed
66

77
- Separate security for file in another enum FilesSecurity
8-
- change onClick prop to optional in IContextMenuItem
98

109
## Added
1110

1211
- Add fileSecurity, security props to IFileItem
13-
- Add itemSecurity, items props to IContextMenuItem
1412
- Add withoutBodyPadding and withoutHeaderMargin properties to IModalDialog
1513
- Add updateCreateDialogModal action
1614
- Add isAutoFocusOnError, errorText, onError, onChange, isCloseAfterCreate, isCreateDisabled properties to ICreateDialog

src/interfaces/items/IContextMenuItem.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,7 @@ export interface IContextMenuItem {
125125
* A function that takes the file/folder/room id as an argument. This function can be asynchronous
126126
*
127127
*/
128-
onClick?: (id: number) => Promise<IMessage> | IMessage | void;
129-
130-
/**
131-
* Specifies elements as submenus.
132-
* If specified, onClick on the parent will not work.
133-
* If none of the child elements are displayed, for example due to security or itemSecurity, the parent will also be hidden.
134-
*/
135-
items?: IContextMenuItem[];
128+
onClick: (id: number) => Promise<IMessage> | IMessage | void;
136129

137130
/**
138131
* Whether to add the action state to the item in the file list when the onClick event is triggered

0 commit comments

Comments
 (0)