many changes
This commit is contained in:
@@ -81,8 +81,11 @@ class AddPage(rio.Component):
|
||||
self.popup_message = "\n Duplicate barcode! \n\n"
|
||||
self.popup_show = True
|
||||
self.popup_color = 'warning'
|
||||
await asyncio.sleep(2)
|
||||
await asyncio.sleep(5)
|
||||
self.popup_show = False
|
||||
self.session.navigate_to("/")
|
||||
await asyncio.sleep(0.01)
|
||||
self.session.navigate_to("/add")
|
||||
else:
|
||||
self.popup_message = "\n Part added! \n\n"
|
||||
self.popup_show = True
|
||||
@@ -99,8 +102,12 @@ class AddPage(rio.Component):
|
||||
self.description: str = ""
|
||||
self.location: str = ""
|
||||
self.location_code: str = ""
|
||||
await asyncio.sleep(2)
|
||||
await asyncio.sleep(1)
|
||||
self.session.navigate_to("/")
|
||||
await asyncio.sleep(0.01)
|
||||
self.session.navigate_to("/add")
|
||||
self.popup_show = False
|
||||
#self.session.navigate_to("/add",replace=True)
|
||||
|
||||
|
||||
async def _add_part_enter(self, event: rio.TextInputConfirmEvent):
|
||||
@@ -134,7 +141,7 @@ class AddPage(rio.Component):
|
||||
if get_location_id(self.location) != False:
|
||||
self.location_code = self.location
|
||||
print("Found location " + get_location_id(self.location).name)
|
||||
self.location = get_location_id(self.location).name
|
||||
self.location = '*' + get_location_id(self.location).name
|
||||
|
||||
|
||||
def _update_partnum(self, event: rio.TextInputChangeEvent):
|
||||
@@ -230,7 +237,8 @@ class AddPage(rio.Component):
|
||||
),
|
||||
rio.TextInput(
|
||||
label="Barcode",
|
||||
text=self.bind().code
|
||||
text=self.bind().code,
|
||||
auto_focus=True
|
||||
),
|
||||
rio.TextInput(
|
||||
label="Full part number",
|
||||
|
||||
Reference in New Issue
Block a user