fix loading
This commit is contained in:
@@ -25,8 +25,8 @@ class Add_new_data(ft.View):
|
||||
expand=True,
|
||||
controls=[
|
||||
Button(text="профиль"),
|
||||
Button(text="мои данные"),
|
||||
Button(text="заполнить данные"),
|
||||
Button(text="мои данные",on_click = self.go_to_my_data),
|
||||
Button(text="заполнить данные", on_click=self.go_to_data),
|
||||
]
|
||||
)
|
||||
),
|
||||
@@ -119,3 +119,11 @@ class Add_new_data(ft.View):
|
||||
print("Данные успешно отправлены")
|
||||
else:
|
||||
print(f"Ошибка при отправке данных: {response.status_code}")
|
||||
|
||||
|
||||
def go_to_info(self,e):
|
||||
self.page.go("/user_info")
|
||||
def go_to_my_data(self,e):
|
||||
self.page.go("/my_data")
|
||||
def go_to_data(self,e):
|
||||
self.page.go("/add_new_data")
|
||||
Reference in New Issue
Block a user