refactor peer tab with model, make it scrollable

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-02-03 15:07:45 +08:00
parent 133fba573b
commit 40d0ea016b
7 changed files with 423 additions and 319 deletions

View file

@ -35,7 +35,7 @@ class GroupModel {
await reset();
if (gFFI.userModel.userName.isEmpty ||
(gFFI.userModel.isAdmin.isFalse && gFFI.userModel.groupName.isEmpty)) {
statePeerTab.check();
gFFI.peerTabModel.check_dynamic_tabs();
return;
}
userLoading.value = true;
@ -82,7 +82,7 @@ class GroupModel {
userLoadError.value = err.toString();
} finally {
userLoading.value = false;
statePeerTab.check();
gFFI.peerTabModel.check_dynamic_tabs();
}
}