Web: Added counting of roles when saving to the buffer.

This commit is contained in:
Tatiana Lopaeva 2023-12-15 12:28:13 +03:00
parent ea96d31b6b
commit fdccaeb503

View File

@ -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) => {