Skip to content

Commit

Permalink
Merge pull request #1317 from bitmark-inc/refresh_debug_token
Browse files Browse the repository at this point in the history
refresh when clear debug token
  • Loading branch information
phuocbitmark authored Oct 11, 2023
2 parents 8510680 + 133589e commit a0f2a33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/screen/account/access_method_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -147,9 +148,10 @@ class _AccessMethodPageState extends State<AccessMethodPage> {
.pushNamed(AppRouter.linkManually, arguments: 'indexerTokenID'),
),
TextButton(
onPressed: () {
injector<CloudDatabase>().connectionDao.deleteConnectionsByType(
onPressed: () async {
await injector<CloudDatabase>().connectionDao.deleteConnectionsByType(
ConnectionType.manuallyIndexerTokenID.rawValue);
injector<ClientTokenService>().refreshTokens();
},
child: Text("delete_all_debug_li".tr())),
],
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1734,8 +1734,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: ba86a24e9a2ce63ed64e259e6807211075761d03
resolved-ref: ba86a24e9a2ce63ed64e259e6807211075761d03
ref: ad7b16728f43de437b0e9102b5b0bf6f3ec35022
resolved-ref: ad7b16728f43de437b0e9102b5b0bf6f3ec35022
url: "https://github.com/autonomy-system/nft-collection"
source: git
version: "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ dependencies:
nft_collection:
git:
url: https://github.com/autonomy-system/nft-collection
ref: ba86a24e9a2ce63ed64e259e6807211075761d03
ref: ad7b16728f43de437b0e9102b5b0bf6f3ec35022
autonomy_tv_proto:
git:
url: https://github.com/autonomy-system/autonomy-tv-proto-communication
Expand Down

0 comments on commit a0f2a33

Please sign in to comment.