Skip to content

Commit

Permalink
Do not allow loading data if no tables available
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 20, 2024
1 parent 381c8ae commit 397be58
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lumen/ai/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,12 @@ def _set_context(self, event):
def _table_explorer(self):
from panel_gwalker import GraphicWalker

table_select = MultiChoice(sizing_mode='stretch_width', max_height=200, margin=(5, 0), max_items=3)
table_select = MultiChoice(
sizing_mode='stretch_width', max_height=200, margin=(5, 0), max_items=5
)
load_button = Button(
name='Load table(s)', icon='table-plus', button_type='primary', align='center'
name='Load table(s)', icon='table-plus', button_type='primary', align='center',
disabled=table_select.param.value.rx().rx.not_()
)

source_map = {}
Expand Down

0 comments on commit 397be58

Please sign in to comment.