From e8fb1f8af4e259da72fc4a246e0b0ce2ddfd0ecc Mon Sep 17 00:00:00 2001 From: phuoc Date: Wed, 11 Oct 2023 15:41:57 +0700 Subject: [PATCH 1/2] refresh when clear debug token Signed-off-by: phuoc --- lib/screen/account/access_method_page.dart | 6 ++++-- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/screen/account/access_method_page.dart b/lib/screen/account/access_method_page.dart index f362b80f2..72b8876e2 100644 --- a/lib/screen/account/access_method_page.dart +++ b/lib/screen/account/access_method_page.dart @@ -8,6 +8,7 @@ // ignore_for_file: unused_field import 'package:autonomy_flutter/screen/app_router.dart'; +import 'package:autonomy_flutter/service/client_token_service.dart'; import 'package:autonomy_flutter/service/configuration_service.dart'; import 'package:autonomy_flutter/util/style.dart'; import 'package:autonomy_flutter/view/au_toggle.dart'; @@ -147,9 +148,10 @@ class _AccessMethodPageState extends State { .pushNamed(AppRouter.linkManually, arguments: 'indexerTokenID'), ), TextButton( - onPressed: () { - injector().connectionDao.deleteConnectionsByType( + onPressed: () async { + await injector().connectionDao.deleteConnectionsByType( ConnectionType.manuallyIndexerTokenID.rawValue); + injector().refreshTokens(); }, child: Text("delete_all_debug_li".tr())), ], diff --git a/pubspec.lock b/pubspec.lock index ae33239ad..7cde8f4f8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1734,8 +1734,8 @@ packages: dependency: "direct main" description: path: "." - ref: ba86a24e9a2ce63ed64e259e6807211075761d03 - resolved-ref: ba86a24e9a2ce63ed64e259e6807211075761d03 + ref: "737be0ce45352b9466d26cbcd8ec944682a75f93" + resolved-ref: "737be0ce45352b9466d26cbcd8ec944682a75f93" url: "https://github.com/autonomy-system/nft-collection" source: git version: "0.0.1" diff --git a/pubspec.yaml b/pubspec.yaml index 072398806..8e9eba02a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -123,7 +123,7 @@ dependencies: nft_collection: git: url: https://github.com/autonomy-system/nft-collection - ref: ba86a24e9a2ce63ed64e259e6807211075761d03 + ref: 737be0ce45352b9466d26cbcd8ec944682a75f93 autonomy_tv_proto: git: url: https://github.com/autonomy-system/autonomy-tv-proto-communication From 133589e39d831c7d5a76660c1e5fdaddf6a1e252 Mon Sep 17 00:00:00 2001 From: phuoc Date: Wed, 11 Oct 2023 16:24:35 +0700 Subject: [PATCH 2/2] lib merged Signed-off-by: phuoc --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 7cde8f4f8..9f51b5d8a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1734,8 +1734,8 @@ packages: dependency: "direct main" description: path: "." - ref: "737be0ce45352b9466d26cbcd8ec944682a75f93" - resolved-ref: "737be0ce45352b9466d26cbcd8ec944682a75f93" + ref: ad7b16728f43de437b0e9102b5b0bf6f3ec35022 + resolved-ref: ad7b16728f43de437b0e9102b5b0bf6f3ec35022 url: "https://github.com/autonomy-system/nft-collection" source: git version: "0.0.1" diff --git a/pubspec.yaml b/pubspec.yaml index 8e9eba02a..ee28979f4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -123,7 +123,7 @@ dependencies: nft_collection: git: url: https://github.com/autonomy-system/nft-collection - ref: 737be0ce45352b9466d26cbcd8ec944682a75f93 + ref: ad7b16728f43de437b0e9102b5b0bf6f3ec35022 autonomy_tv_proto: git: url: https://github.com/autonomy-system/autonomy-tv-proto-communication