feat: sidebar UI Revamp on Desktop (#5343)

This commit is contained in:
Lucas.Xu
2024-05-27 08:51:49 +08:00
committed by GitHub
parent 13b3439bd6
commit a8f136eda2
138 changed files with 2678 additions and 1305 deletions

View File

@ -196,7 +196,7 @@ impl FolderTest {
},
FolderScript::ReadFavorites => {
let favorites = read_favorites(sdk).await;
self.favorites = favorites.to_vec();
self.favorites = favorites.items.iter().map(|x| x.item.clone()).collect();
},
}
}
@ -375,10 +375,10 @@ pub async fn toggle_favorites(sdk: &EventIntegrationTest, view_id: Vec<String>)
.await;
}
pub async fn read_favorites(sdk: &EventIntegrationTest) -> RepeatedViewPB {
pub async fn read_favorites(sdk: &EventIntegrationTest) -> RepeatedFavoriteViewPB {
EventBuilder::new(sdk.clone())
.event(ReadFavorites)
.async_send()
.await
.parse::<RepeatedViewPB>()
.parse::<RepeatedFavoriteViewPB>()
}