Refactoring update users rights
This commit is contained in:
parent
04b3651fd0
commit
8bcd9da398
|
@ -541,9 +541,7 @@
|
||||||
var _setUsers = function(data) {
|
var _setUsers = function(data) {
|
||||||
_sendCommand({
|
_sendCommand({
|
||||||
command: 'setUsers',
|
command: 'setUsers',
|
||||||
data: {
|
|
||||||
data: data
|
data: data
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -557,9 +555,7 @@
|
||||||
var _setSharingSettings = function(data) {
|
var _setSharingSettings = function(data) {
|
||||||
_sendCommand({
|
_sendCommand({
|
||||||
command: 'setSharingSettings',
|
command: 'setSharingSettings',
|
||||||
data: {
|
|
||||||
data: data
|
data: data
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -972,7 +972,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
setUsers: function(data) {
|
setUsers: function(data) {
|
||||||
this.externalUsers = data.data || [];
|
this.externalUsers = data.users || [];
|
||||||
this.isUsersLoading = false;
|
this.isUsersLoading = false;
|
||||||
this._state.emailSearch && this.onEmailListMenu(this._state.emailSearch.str, this._state.emailSearch.left, this._state.emailSearch.right);
|
this._state.emailSearch && this.onEmailListMenu(this._state.emailSearch.str, this._state.emailSearch.left, this._state.emailSearch.right);
|
||||||
this._state.emailSearch = null;
|
this._state.emailSearch = null;
|
||||||
|
|
|
@ -1010,7 +1010,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
setSharingSettings: function(data) {
|
setSharingSettings: function(data) {
|
||||||
data && data.data && this.updateSharingSettings(data.data);
|
data && this.updateSharingSettings(data.sharingSettings);
|
||||||
},
|
},
|
||||||
|
|
||||||
updateSharingSettings: function(rights) {
|
updateSharingSettings: function(rights) {
|
||||||
|
|
|
@ -823,7 +823,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
setSharingSettings: function(data) {
|
setSharingSettings: function(data) {
|
||||||
data && data.data && this.updateSharingSettings(data.data);
|
data && this.updateSharingSettings(data.sharingSettings);
|
||||||
},
|
},
|
||||||
|
|
||||||
updateSharingSettings: function(rights) {
|
updateSharingSettings: function(rights) {
|
||||||
|
|
|
@ -1277,7 +1277,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
setSharingSettings: function(data) {
|
setSharingSettings: function(data) {
|
||||||
data && data.data && this.updateSharingSettings(data.data);
|
data && this.updateSharingSettings(data.sharingSettings);
|
||||||
},
|
},
|
||||||
|
|
||||||
updateSharingSettings: function(rights) {
|
updateSharingSettings: function(rights) {
|
||||||
|
|
Loading…
Reference in a new issue