Fix token login popup show

This commit is contained in:
Yegor Vialov
2020-05-03 15:26:44 +00:00
parent 8aa0e03187
commit cc60dc2b21
5 changed files with 18 additions and 45 deletions

View File

@ -238,7 +238,7 @@ class _HAClientAppState extends State<HAClientApp> {
if (purchase is List<PurchaseDetails>) {
if (purchase[0].status == PurchaseStatus.purchased) {
eventBus.fire(ShowPopupEvent(
Popup(
popup: Popup(
title: "Thanks a lot!",
body: "Thank you for supporting HA Client development!",
positiveText: "Ok"
@ -298,7 +298,10 @@ class _HAClientAppState extends State<HAClientApp> {
decoration: TextDecoration.underline
)),
onPressed: () {
eventBus.fire(ShowTokenLoginPopupEvent(goBackFirst: true));
eventBus.fire(ShowPopupEvent(
goBackFirst: true,
popup: TokenLoginPopup()
));
},
)
],