Skip to content

Commit

Permalink
refresh button
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Mar 2, 2024
1 parent 3cac2d9 commit 5b8a3e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/admin/NewBan.dm
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ var/savefile/Banlist
/datum/admins/proc/stickypanel()
var/add_sticky = "<a href='?src=\ref[src];[HrefToken()];sticky=1;new_sticky=1'>Add Sticky Ban</a>"
var/find_sticky = "<a href='?src=\ref[src];[HrefToken()];sticky=1;find_sticky=1'>Find Sticky Ban</a>"
var/refresh_button = "<a href='?src=\ref[src];[HrefToken()];sticky=1;refresh_panel=1'>Refresh Panel</a>"

var/data = "<hr><b>Sticky Bans:</b> [add_sticky] [find_sticky] <table border=1 rules=all frame=void cellspacing=0 cellpadding=3>"
var/data = "<hr><b>Sticky Bans:</b> [add_sticky] [find_sticky] [refresh_button] <table border=1 rules=all frame=void cellspacing=0 cellpadding=3>"

var/list/datum/view_record/stickyban/stickies = DB_VIEW(/datum/view_record/stickyban,
DB_COMP("active", DB_EQUALS, TRUE)
Expand Down
3 changes: 3 additions & 0 deletions code/modules/admin/topic/topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 5b8a3e8

Please sign in to comment.