mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 23:38:37 +00:00
update call api
This commit is contained in:
parent
951f9a1859
commit
cf321b3662
@ -225,7 +225,7 @@ class ShareToGroup extends React.Component {
|
||||
this.updateSharedItems(item, permission);
|
||||
})
|
||||
} else {
|
||||
seafileAPI.updateFolderSharedToGroupPerm(repoID, path, 'group', permission, groupID).then(() => {
|
||||
seafileAPI.updateShareToGroupItemPermission(repoID, path, 'group', groupID, permission).then(() => {
|
||||
this.updateSharedItems(item, permission);
|
||||
});
|
||||
}
|
||||
@ -248,8 +248,8 @@ class ShareToGroup extends React.Component {
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{'width': '50%'}}>{gettext('Group')}</th>
|
||||
<th style={{'width': '30%'}}>{gettext('Permission')}</th>
|
||||
<th style={{'width': '40%'}}>{gettext('Group')}</th>
|
||||
<th style={{'width': '40%'}}>{gettext('Permission')}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -241,7 +241,7 @@ class ShareToUser extends React.Component {
|
||||
this.updateSharedItems(item, permission);
|
||||
});
|
||||
} else {
|
||||
seafileAPI.updateFolderSharedToUserPerm(repoID, path, 'user', permission, username).then(() => {
|
||||
seafileAPI.updateShareToUserItemPermission(repoID, path, 'user', username, permission).then(() => {
|
||||
this.updateSharedItems(item, permission);
|
||||
});
|
||||
}
|
||||
@ -265,8 +265,8 @@ class ShareToUser extends React.Component {
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{'width': '50%'}}>{gettext('User')}</th>
|
||||
<th style={{'width': '30%'}}>{gettext('Permission')}</th>
|
||||
<th style={{'width': '40%'}}>{gettext('User')}</th>
|
||||
<th style={{'width': '40%'}}>{gettext('Permission')}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user