1
0
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:
shanshuirenjia 2018-12-25 18:31:34 +08:00
parent 951f9a1859
commit cf321b3662
2 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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>