Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| edc5987293 | |||
| 2b6f0e41e6 | |||
| 444c2d3182 | |||
| a069cfe410 |
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
[autopve_demo.webm](https://github.com/natankeddem/autopve/assets/44515217/827bdd22-5311-43c1-9452-a56fa11998aa)
|
https://github.com/natankeddem/autopve/assets/44515217/7c766078-a69f-4dc3-889c-6d7113fd3421
|
||||||
|
|
||||||
## Information
|
## Information
|
||||||
|
|
||||||
|
|||||||
@ -70,6 +70,8 @@ class Setting(Tab):
|
|||||||
def remove_key(key):
|
def remove_key(key):
|
||||||
self._scroll.remove(self._elements[key]["row"])
|
self._scroll.remove(self._elements[key]["row"])
|
||||||
del self._elements[key]
|
del self._elements[key]
|
||||||
|
if key in storage.answer(self.answer)[self.type]:
|
||||||
|
del storage.answer(self.answer)[self.type][key]
|
||||||
|
|
||||||
def set_key(key, value: str):
|
def set_key(key, value: str):
|
||||||
v: Any = None
|
v: Any = None
|
||||||
|
|||||||
@ -48,13 +48,11 @@ class System(Tab):
|
|||||||
with self.scroll:
|
with self.scroll:
|
||||||
with ui.row() as row:
|
with ui.row() as row:
|
||||||
row.tailwind.width("full").align_items("center").justify_content("between")
|
row.tailwind.width("full").align_items("center").justify_content("between")
|
||||||
with ui.row() as row:
|
self._elements[restriction] = {
|
||||||
row.tailwind.align_items("center")
|
"control": el.FInput(value=restriction, read_only=True),
|
||||||
self._elements[restriction] = {
|
"row": row,
|
||||||
"control": el.FInput(value=restriction, read_only=True),
|
}
|
||||||
"row": row,
|
self._elements[restriction]["control"].tailwind.width("[420px]")
|
||||||
}
|
|
||||||
self._elements[restriction]["control"].tailwind.width("[420px]")
|
|
||||||
ui.button(icon="remove", on_click=lambda _, r=restriction: remove_restriction(r))
|
ui.button(icon="remove", on_click=lambda _, r=restriction: remove_restriction(r))
|
||||||
if self.type not in storage.answer(self.answer):
|
if self.type not in storage.answer(self.answer):
|
||||||
storage.answer(self.answer)[self.type] = []
|
storage.answer(self.answer)[self.type] = []
|
||||||
|
|||||||
Reference in New Issue
Block a user