1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 03:47:09 +00:00

group dtable share (#3840)

* group dtable share

* add test case
This commit is contained in:
王健辉
2019-07-13 16:05:53 +08:00
committed by Daniel Pan
parent d75f613c2d
commit c6768c725d
4 changed files with 208 additions and 47 deletions

View File

@@ -26,7 +26,6 @@ const tablePropTypes = {
onUnfreezedItem: PropTypes.func.isRequired,
onFreezedItem: PropTypes.func.isRequired,
isItemFreezed: PropTypes.bool.isRequired,
isPersonal: PropTypes.bool.isRequired,
};
class Table extends Component {
@@ -135,9 +134,7 @@ class Table extends Component {
<DropdownMenu className="drop-list" right={true}>
<DropdownItem onClick={this.onRenameTableCancel}>{gettext('Rename')}</DropdownItem>
<DropdownItem onClick={this.onDeleteTableCancel}>{gettext('Delete')}</DropdownItem>
{this.props.isPersonal &&
<DropdownItem onClick={this.onShareTableCancel}>{gettext('Share')}</DropdownItem>
}
</DropdownMenu>
</Dropdown>
}
@@ -258,7 +255,6 @@ class Workspace extends Component {
onFreezedItem={this.onFreezedItem}
onUnfreezedItem={this.onUnfreezedItem}
isItemFreezed={isItemFreezed}
isPersonal={isPersonal}
/>
);
})}