mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: sidebar UI Revamp on Desktop (#5343)
This commit is contained in:
@ -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>()
|
||||
}
|
||||
|
Reference in New Issue
Block a user