Skip to content

Commit

Permalink
More debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
S3L3CT3DLoves committed Nov 4, 2024
1 parent 74803d5 commit 052adf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/QuickEdit/easytag.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: EasyTag
description: UI plugin to add shortcuts for commonly used tags
url: https://github.com/stashapp/CommunityScripts
version: 0.13.2
version: 0.13.3

ui:
css:
Expand Down
6 changes: 4 additions & 2 deletions plugins/QuickEdit/quickedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class PluginUI {

/** Called when a tab is clicked, either displays the plugin or hides it to allow normal Stash behaviour */
switchTab(activeTab){
console.log("Switch Tab: " , activeTab)
console.log("QuickEdit Tab: " , activeTab == this.UI_TAB)
console.debug("Switch Tab: " , activeTab)
console.debug("QuickEdit Tab: " , activeTab == this.UI_TAB)
if(activeTab == this.UI_TAB){
// disable current active tab
const allTabs = document.querySelectorAll("div[role='tablist'] > div[class='nav-item'] > a")
Expand All @@ -133,6 +133,7 @@ class PluginUI {

this.UI_CONTAINER.classList.add("show")
this.UI_CONTAINER.classList.add("active")
console.debug("Showing :" , this.UI_CONTAINER)

this.updateDisplay()
}
Expand All @@ -147,6 +148,7 @@ class PluginUI {

updateDisplay(){
if(!this.ENABLED){
console.debug("Display not enabled")
return
}

Expand Down

0 comments on commit 052adf4

Please sign in to comment.