Skip to content

Commit

Permalink
Deadmin topic spam fix and fixes trailing MC panel after having deadm…
Browse files Browse the repository at this point in the history
…ined (tgstation#68983)

* Removes redundant init_verb() call

* Fixes the MC tab not going away when you deadmin + runs Prettier on statbrowser.js

* Revert "Fixes the MC tab not going away when you deadmin + runs Prettier on statbrowser.js"

This reverts commit 2676d5f.

* Now prettier will only work inside of the tgui folder

* Actually makes the change for the MC tab sticking around forever
  • Loading branch information
GoldenAlpharex authored Aug 9, 2022
1 parent 86af0a7 commit 8c0ece3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# We don't want prettier to run on anything outside of the TGUI folder, so we have to do this.
/*

# We want it to run into the TGUI folder, however.
!/tgui
1 change: 0 additions & 1 deletion code/modules/admin/holder2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ GLOBAL_PROTECT(href_token)
if(owner)
GLOB.admins -= owner
owner.remove_admin_verbs()
owner.init_verbs()
owner.holder = null
owner = null

Expand Down
2 changes: 1 addition & 1 deletion html/statbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function remove_listedturf() {
}

function remove_mc() {
removeStatusTab("MC");
removePermanentTab("MC");
if (current_tab == "MC") {
tab_change("Status");
}
Expand Down

0 comments on commit 8c0ece3

Please sign in to comment.