Refactoring update users rights

This commit is contained in:
Julia Radzhabova 2019-07-12 10:43:02 +03:00
parent 04b3651fd0
commit 8bcd9da398
5 changed files with 6 additions and 10 deletions

View file

@ -541,9 +541,7 @@
var _setUsers = function(data) {
_sendCommand({
command: 'setUsers',
data: {
data: data
}
data: data
});
};
@ -557,9 +555,7 @@
var _setSharingSettings = function(data) {
_sendCommand({
command: 'setSharingSettings',
data: {
data: data
}
data: data
});
};

View file

@ -972,7 +972,7 @@ define([
},
setUsers: function(data) {
this.externalUsers = data.data || [];
this.externalUsers = data.users || [];
this.isUsersLoading = false;
this._state.emailSearch && this.onEmailListMenu(this._state.emailSearch.str, this._state.emailSearch.left, this._state.emailSearch.right);
this._state.emailSearch = null;

View file

@ -1010,7 +1010,7 @@ define([
},
setSharingSettings: function(data) {
data && data.data && this.updateSharingSettings(data.data);
data && this.updateSharingSettings(data.sharingSettings);
},
updateSharingSettings: function(rights) {

View file

@ -823,7 +823,7 @@ define([
},
setSharingSettings: function(data) {
data && data.data && this.updateSharingSettings(data.data);
data && this.updateSharingSettings(data.sharingSettings);
},
updateSharingSettings: function(rights) {

View file

@ -1277,7 +1277,7 @@ define([
},
setSharingSettings: function(data) {
data && data.data && this.updateSharingSettings(data.data);
data && this.updateSharingSettings(data.sharingSettings);
},
updateSharingSettings: function(rights) {