From 5fe055f36268b983d73427addd27727e5cef0edf Mon Sep 17 00:00:00 2001 From: kneeraj2000 Date: Tue, 4 Jul 2023 16:12:18 +0530 Subject: [PATCH] fix: removes modals from groupRequestAccessHistory page --- static/js/showAccessHistory.js | 24 ----- templates/EnigmaOps/showGroupHistory.html | 103 ++++------------------ 2 files changed, 16 insertions(+), 111 deletions(-) diff --git a/static/js/showAccessHistory.js b/static/js/showAccessHistory.js index 01fb7dd3..4e9c7fb5 100644 --- a/static/js/showAccessHistory.js +++ b/static/js/showAccessHistory.js @@ -1,29 +1,5 @@ var currentStatusFilterState = 'hidden'; -function showGroupModal(group_name) { - $('#group_modal').show(); - $('#' + group_name).attr("selected",true); -} - -function closeGroupModal() { - $('#group_modal').hide(); -} - -function showMemberModal(group_name) { - $('#member_modal').show(); - $('#grpname-' + group_name).attr("selected",true); -} - -function closeMemberModal() { - $('#member_modal').hide(); -} - -function clickAddmemberFinalButton() { - const grp_name = $('#memberGroupName').val() - const finalUrl = `/group/adduser/${grp_name}`; - window.location = finalUrl; -} - const focusFilterStatus = (elem) => { const ulElem = $(elem).children('ul'); if(currentStatusFilterState == 'hidden') { diff --git a/templates/EnigmaOps/showGroupHistory.html b/templates/EnigmaOps/showGroupHistory.html index 305feed1..97d4b5a2 100644 --- a/templates/EnigmaOps/showGroupHistory.html +++ b/templates/EnigmaOps/showGroupHistory.html @@ -216,16 +216,22 @@

All Groups

{% if each_group.role == "Owner" and each_group.status == "Approved" %} - - + + + + + + {%else%} NA {%endif%} @@ -322,81 +328,4 @@

No group data available. Create a {% endif %} - - - - {% endblock %}