mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-19 07:27:56 +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);
|
this.updateSharedItems(item, permission);
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
seafileAPI.updateFolderSharedToGroupPerm(repoID, path, 'group', permission, groupID).then(() => {
|
seafileAPI.updateShareToGroupItemPermission(repoID, path, 'group', groupID, permission).then(() => {
|
||||||
this.updateSharedItems(item, permission);
|
this.updateSharedItems(item, permission);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -248,8 +248,8 @@ class ShareToGroup extends React.Component {
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style={{'width': '50%'}}>{gettext('Group')}</th>
|
<th style={{'width': '40%'}}>{gettext('Group')}</th>
|
||||||
<th style={{'width': '30%'}}>{gettext('Permission')}</th>
|
<th style={{'width': '40%'}}>{gettext('Permission')}</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -241,7 +241,7 @@ class ShareToUser extends React.Component {
|
|||||||
this.updateSharedItems(item, permission);
|
this.updateSharedItems(item, permission);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
seafileAPI.updateFolderSharedToUserPerm(repoID, path, 'user', permission, username).then(() => {
|
seafileAPI.updateShareToUserItemPermission(repoID, path, 'user', username, permission).then(() => {
|
||||||
this.updateSharedItems(item, permission);
|
this.updateSharedItems(item, permission);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -265,8 +265,8 @@ class ShareToUser extends React.Component {
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style={{'width': '50%'}}>{gettext('User')}</th>
|
<th style={{'width': '40%'}}>{gettext('User')}</th>
|
||||||
<th style={{'width': '30%'}}>{gettext('Permission')}</th>
|
<th style={{'width': '40%'}}>{gettext('Permission')}</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user