improve delete-key flow
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user