Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f3b75787a0 | |||
| 756d7fb54a |
@@ -60,10 +60,8 @@ class UserInfoBox(Component):
|
|||||||
self.session[LocalDataService].del_session(self.session[LocalData].stored_session_token)
|
self.session[LocalDataService].del_session(self.session[LocalData].stored_session_token)
|
||||||
self.session[LocalData].stored_session_token = None
|
self.session[LocalData].stored_session_token = None
|
||||||
self.session.attach(self.session[LocalData])
|
self.session.attach(self.session[LocalData])
|
||||||
if self.status_change_cb is not None:
|
|
||||||
await self.status_change_cb()
|
await self.status_change_cb()
|
||||||
await self.session[RefreshService].trigger_refresh()
|
await self.session[RefreshService].trigger_refresh()
|
||||||
self.session.navigate_to("")
|
|
||||||
|
|
||||||
@event.on_populate
|
@event.on_populate
|
||||||
async def async_init(self) -> None:
|
async def async_init(self) -> None:
|
||||||
|
|||||||
@@ -233,20 +233,19 @@ class AccountPage(Component):
|
|||||||
on_press=self._on_paypal_info_press
|
on_press=self._on_paypal_info_press
|
||||||
),
|
),
|
||||||
paypal_info_revealer,
|
paypal_info_revealer,
|
||||||
# Disabled because people did not understand the fee's and kept charging 24.03 € to their accounts
|
Link(
|
||||||
# Link(
|
content=Button(
|
||||||
# content=Button(
|
content=Text("PAYPAL (3% Gebühr - Gewerblich)", style=TextStyle(fill=Color.from_hex("121212"), font_size=0.8), justify="center"),
|
||||||
# content=Text("PAYPAL (3% Gebühr - Gewerblich)", style=TextStyle(fill=Color.from_hex("121212"), font_size=0.8), justify="center"),
|
shape="rectangle",
|
||||||
# shape="rectangle",
|
style="major",
|
||||||
# style="major",
|
color="secondary",
|
||||||
# color="secondary",
|
grow_x=True,
|
||||||
# grow_x=True,
|
margin=2,
|
||||||
# margin=2,
|
margin_top=0
|
||||||
# margin_top=0
|
),
|
||||||
# ),
|
target_url="https://www.paypal.com/ncp/payment/89YMGVZ4S33RS",
|
||||||
# target_url="https://www.paypal.com/ncp/payment/89YMGVZ4S33RS",
|
open_in_new_tab=True
|
||||||
# open_in_new_tab=True
|
)
|
||||||
# )
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
MainViewContentBox(
|
MainViewContentBox(
|
||||||
|
|||||||
@@ -21,6 +21,5 @@ class LocalDataService:
|
|||||||
self._session[key] = session
|
self._session[key] = session
|
||||||
return key
|
return key
|
||||||
|
|
||||||
def del_session(self, token: Optional[str]) -> None:
|
def del_session(self, token: str) -> None:
|
||||||
if token is not None:
|
|
||||||
self._session.pop(token, None)
|
self._session.pop(token, None)
|
||||||
|
|||||||
Reference in New Issue
Block a user