From b8146e32f67e90f4d77b226d4e2d067bb04e3ccb Mon Sep 17 00:00:00 2001 From: leonidastri Date: Wed, 15 Jan 2025 11:27:13 +0100 Subject: [PATCH 1/3] fix issue with updating roles --- group_manager/static/group_manager/js/group_manager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/group_manager/static/group_manager/js/group_manager.js b/group_manager/static/group_manager/js/group_manager.js index 068781ab..0221345c 100644 --- a/group_manager/static/group_manager/js/group_manager.js +++ b/group_manager/static/group_manager/js/group_manager.js @@ -498,6 +498,11 @@ async function processImportedRow (row) { catIdx = catIdx + 1 } $('#group-list').html(html) + + const activeGroupName = Yoda.storage.session.get('selected-group'); + if (activeGroupName) { + Yoda.groupManager.selectGroup(activeGroupName) + } }) } } From fec5e1acc6644924fd705672db29fe44a9902724 Mon Sep 17 00:00:00 2001 From: leonidastri Date: Wed, 15 Jan 2025 11:31:50 +0100 Subject: [PATCH 2/3] feat: comments --- group_manager/static/group_manager/js/group_manager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/group_manager/static/group_manager/js/group_manager.js b/group_manager/static/group_manager/js/group_manager.js index 0221345c..201f5cb7 100644 --- a/group_manager/static/group_manager/js/group_manager.js +++ b/group_manager/static/group_manager/js/group_manager.js @@ -499,6 +499,8 @@ async function processImportedRow (row) { } $('#group-list').html(html) + // Get the selected group if exists and reselect it to get the changes. + // If no active group, no group is selected. const activeGroupName = Yoda.storage.session.get('selected-group'); if (activeGroupName) { Yoda.groupManager.selectGroup(activeGroupName) From 00b0d8cca47a23c5f2c1b1ae54500717b38e34d8 Mon Sep 17 00:00:00 2001 From: leonidastri Date: Wed, 15 Jan 2025 12:08:17 +0100 Subject: [PATCH 3/3] fix lint --- group_manager/static/group_manager/js/group_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group_manager/static/group_manager/js/group_manager.js b/group_manager/static/group_manager/js/group_manager.js index 201f5cb7..c5b2610a 100644 --- a/group_manager/static/group_manager/js/group_manager.js +++ b/group_manager/static/group_manager/js/group_manager.js @@ -501,7 +501,7 @@ async function processImportedRow (row) { // Get the selected group if exists and reselect it to get the changes. // If no active group, no group is selected. - const activeGroupName = Yoda.storage.session.get('selected-group'); + const activeGroupName = Yoda.storage.session.get('selected-group') if (activeGroupName) { Yoda.groupManager.selectGroup(activeGroupName) }