Fix checkin/out pages, add location refresh, and misc bugfix
This commit is contained in:
@@ -51,6 +51,9 @@ class AddLocationPage(rio.Component):
|
||||
self.popup_show = True
|
||||
self.popup_color = 'warning'
|
||||
await asyncio.sleep(2)
|
||||
self.session.navigate_to("/")
|
||||
await asyncio.sleep(0.01)
|
||||
self.session.navigate_to("/addlocation")
|
||||
self.popup_show = False
|
||||
else:
|
||||
self.popup_message = "\n Location added! \n\n"
|
||||
@@ -61,7 +64,10 @@ class AddLocationPage(rio.Component):
|
||||
self.description: str = ""
|
||||
self.parent_code: str = ""
|
||||
self.parent: str = ""
|
||||
await asyncio.sleep(2)
|
||||
await asyncio.sleep(1)
|
||||
self.session.navigate_to("/")
|
||||
await asyncio.sleep(0.01)
|
||||
self.session.navigate_to("/addlocation")
|
||||
self.popup_show = False
|
||||
|
||||
|
||||
@@ -89,7 +95,8 @@ class AddLocationPage(rio.Component):
|
||||
rio.TextInput(
|
||||
label="Barcode",
|
||||
text=self.bind().code,
|
||||
on_confirm=self._add_part_enter
|
||||
on_confirm=self._add_part_enter,
|
||||
auto_focus=True
|
||||
),
|
||||
rio.TextInput(
|
||||
label="Parent Location (optional)",
|
||||
@@ -104,7 +111,8 @@ class AddLocationPage(rio.Component):
|
||||
),
|
||||
rio.MultiLineTextInput(
|
||||
label="Description (optional)",
|
||||
text=self.bind().description
|
||||
text=self.bind().description,
|
||||
on_confirm=self._add_part_enter
|
||||
),
|
||||
rio.Button(
|
||||
content="Add",
|
||||
|
||||
Reference in New Issue
Block a user