Fix(UI): UI bug fixes.

This commit is contained in:
2025-07-10 15:37:55 +01:00
parent 28158cb0c4
commit d5d2f6f710
18 changed files with 90 additions and 42 deletions

View File

@@ -228,11 +228,11 @@ class Parameters_Command(Get_Many_Parameters_Base):
filters.get_all_command_category = not has_filter_command_category
filters.get_inactive_command_category = not active_only
filters.ids_command_category = form.id_command_category.data if has_filter_command_category else ''
filters.names_command_category = form.search_text.data if has_filter_search_text else ''
filters.names_command_category = form.search.data if has_filter_search_text else ''
filters.get_all_command = True
filters.get_inactive_command = not active_only
filters.ids_command = ''
filters.names_command = form.search_text.data if has_filter_search_text else ''
filters.names_command = form.search.data if has_filter_search_text else ''
return filters
@classmethod
@@ -244,11 +244,13 @@ class Parameters_Command(Get_Many_Parameters_Base):
filters.get_all_command_category = True
filters.get_inactive_command_category = not active_only
filters.ids_command_category = ''
filters.names_command_category = form.search_text.data if has_filter_search_text else ''
filters.get_all_command = True
filters.get_inactive_command = not active_only
filters.names_command_category = form.search.data if has_filter_search_text else ''
filters.get_all_command = False
filters.get_inactive_command = False
filters.ids_command = ''
filters.names_command = form.search_text.data if has_filter_search_text else ''
filters.names_command = ''
filters.require_all_id_search_filters_met = False
filters.output_commands = False
return filters
def to_json(self):

View File

@@ -99,7 +99,7 @@ class Command_Category_Temp(db.Model, Base):
__table_args__ = { 'extend_existing': True }
id_temp = db.Column(db.Integer, primary_key=True)
id_command_category = db.Column(db.Integer)
code = db.Column(db.String(100))
# code = db.Column(db.String(100))
name = db.Column(db.String(250))
active = db.Column(db.Boolean)
guid: str = db.Column(db.String(36))
@@ -112,7 +112,7 @@ class Command_Category_Temp(db.Model, Base):
_m = 'Command_Category_Temp.from_Command_Category'
temp = cls()
temp.id_command_category = command_category.id_command_category
temp.code = command_category.code
# temp.code = command_category.code
temp.name = command_category.name
temp.active = command_category.active
return temp