improve delete-key flow
Some checks failed
Build Docker and Deploy / Build Docker Container (push) Failing after 1m15s
Build Docker and Deploy / Run Unit-Tests (push) Failing after 2m57s
Build Docker and Deploy / Deploy to Server (push) Has been skipped

This commit is contained in:
2025-05-03 23:00:12 +02:00
parent 1d2f4f70c8
commit 9db49a4164
3 changed files with 10 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ class _KeyTokenListPageState extends State<KeyTokenListPage> {
child: PagedListView<int, KeyToken>(
pagingController: _pagingController,
builderDelegate: PagedChildBuilderDelegate<KeyToken>(
itemBuilder: (context, item, index) => KeyTokenListItem(item: item),
itemBuilder: (context, item, index) => KeyTokenListItem(item: item, needsReload: _fullRefresh),
),
),
),
@@ -107,4 +107,9 @@ class _KeyTokenListPageState extends State<KeyTokenListPage> {
builder: (context) => KeyTokenCreatedModal(keytoken: token, tokenValue: tokValue),
);
}
void _fullRefresh() {
ApplicationLog.debug('KeytokenListPage::fullRefresh');
_pagingController.refresh();
}
}