Web: Added counting of roles when saving to the buffer.
This commit is contained in:
parent
ea96d31b6b
commit
fdccaeb503
@ -109,9 +109,16 @@ class SelectionStore {
|
||||
setBufferSelection = (bufferSelection, addToSelection = true) => {
|
||||
this.bufferSelection = bufferSelection;
|
||||
//console.log("setBufferSelection", { bufferSelection });
|
||||
bufferSelection
|
||||
? addToSelection && this.setSelection([bufferSelection])
|
||||
: this.clearSelection();
|
||||
|
||||
if (bufferSelection) {
|
||||
if (!addToSelection) return;
|
||||
this.setSelection([bufferSelection]);
|
||||
this.incrementUsersRights(bufferSelection);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.clearSelection();
|
||||
};
|
||||
|
||||
selectUser = (user) => {
|
||||
|
Loading…
Reference in New Issue
Block a user