Commit 4a92e7f0 authored by Alex ORLUC's avatar Alex ORLUC

FEAT #12091 TIME 0 fix current res

parent 9697f9d0
......@@ -239,11 +239,13 @@ export class BasketListComponent implements OnInit {
togglePanel(mode: string, row: any) {
let thisSelect = { checked : true };
let thisDeselect = { checked : false };
const previousRes = this.currentResource;
row.checked = true;
this.toggleAllRes(thisDeselect);
this.toggleRes(thisSelect, row);
if(this.currentResource.resId == row.resId && this.sidenavRight.opened && this.currentMode == mode) {
if(previousRes.resId == row.resId && this.sidenavRight.opened && this.currentMode == mode) {
this.sidenavRight.close();
} else {
this.currentMode = mode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment