Add delete function, fix some text
This commit is contained in:
@ -54,7 +54,7 @@ class AddLocationPage(rio.Component):
|
||||
await asyncio.sleep(2)
|
||||
self.popup_show = False
|
||||
else:
|
||||
self.popup_message = "\n Part added! \n\n"
|
||||
self.popup_message = "\n Location added! \n\n"
|
||||
self.popup_show = True
|
||||
self.popup_color = 'success'
|
||||
self.name: str = ""
|
||||
@ -76,7 +76,7 @@ class AddLocationPage(rio.Component):
|
||||
return rio.Column(
|
||||
rio.Popup(
|
||||
anchor=rio.Text(
|
||||
text="Add a part below:",
|
||||
text="Add a location below:",
|
||||
style='heading1',
|
||||
align_x = 0.5
|
||||
),
|
||||
|
@ -130,9 +130,13 @@ class BrowsePage(rio.Component):
|
||||
|
||||
async def _delete_edit_popup(self):
|
||||
self.edit_show = False
|
||||
self.info_show = False
|
||||
# TODO: delete here
|
||||
self.info_show = True
|
||||
await self.force_refresh()
|
||||
await delete_item_id(self.ibarcode)
|
||||
await self._search()
|
||||
await asyncio.sleep(1)
|
||||
self.popup_show = False
|
||||
await self._search()
|
||||
|
||||
|
||||
async def _open_edit_popup(self, code: str) -> str | None:
|
||||
|
Reference in New Issue
Block a user