From 5b8a3e876d81497a76a4653617e2588921a34436 Mon Sep 17 00:00:00 2001 From: harryob Date: Sat, 2 Mar 2024 14:46:01 +0000 Subject: [PATCH] refresh button --- code/modules/admin/NewBan.dm | 3 ++- code/modules/admin/topic/topic.dm | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/NewBan.dm b/code/modules/admin/NewBan.dm index b00fb0bafe..aaf42cb17c 100644 --- a/code/modules/admin/NewBan.dm +++ b/code/modules/admin/NewBan.dm @@ -196,8 +196,9 @@ var/savefile/Banlist /datum/admins/proc/stickypanel() var/add_sticky = "Add Sticky Ban" var/find_sticky = "Find Sticky Ban" + var/refresh_button = "Refresh Panel" - var/data = "
Sticky Bans: [add_sticky] [find_sticky] " + var/data = "
Sticky Bans: [add_sticky] [find_sticky] [refresh_button]
" var/list/datum/view_record/stickyban/stickies = DB_VIEW(/datum/view_record/stickyban, DB_COMP("active", DB_EQUALS, TRUE) diff --git a/code/modules/admin/topic/topic.dm b/code/modules/admin/topic/topic.dm index 660342aac2..9d0a6de572 100644 --- a/code/modules/admin/topic/topic.dm +++ b/code/modules/admin/topic/topic.dm @@ -248,6 +248,9 @@ important_message_external("[owner] has removed the permanent ban on [unban_player.ckey].", "Permaban Removed") else if(href_list["sticky"]) + if(href_list["refresh_panel"]) + stickypanel() + if(href_list["view_all_ckeys"]) var/list/datum/view_record/stickyban_matched_ckey/all_ckeys = DB_VIEW(/datum/view_record/stickyban_matched_ckey, DB_COMP("linked_stickyban", DB_EQUALS, href_list["sticky"])