Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tir/technologies/poui_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5852,6 +5852,10 @@ def SetButton(self, button, sub_item="", position=1, check_error=True):

logger().info("Switching to the POUI button-click method")

if (button.lower().strip() == "x"):
self.set_button_x(position, check_error)
return

# Map legacy button names to their POUI equivalents.
button_dict = {
self.language.old_browse_edit : self.language.new_browse_edit,
Expand Down Expand Up @@ -5907,6 +5911,15 @@ def SetButton(self, button, sub_item="", position=1, check_error=True):
if item:
self.click_popup(item)

def set_button_webapp(self, button, sub_item="", position=1, check_error=True):
from tir.technologies.core.events import emit
emit('webapp.set_button', button=button, sub_item=sub_item, position=position, check_error=check_error)

def set_button_x(self, position=1, check_error=True):

self.click_icon(label='', class_name='an an-sign-out', position=1)
self.set_button_webapp(button=self.language.yes, position=position,
check_error=check_error)

def SearchBrowse(self, term="", key=None, identifier=None,
index=False, column=None, filters=None) -> None:
Expand Down
Loading