Compare commits

..

No commits in common. "fc3dfa7ef48b8376f458600fa5b3e6148f4ab92c" and "c21b9ee81a97c904de60113a28a985920e8ae95e" have entirely different histories.

1 changed files with 1 additions and 6 deletions

View File

@ -258,16 +258,11 @@ FluArea {
iconSource: content_page.isFavorite ? FluentIcons.FavoriteStarFill : FluentIcons.FavoriteStar
onClicked: {
content_page.isFavorite = !content_page.isFavorite
console.log(content_page.isFavorite)
content_page.favoriteCount += (content_page.isFavorite ? 1 : -1)
Request.put("knowledge/" + knowledgeFileId + "/star",
JSON.stringify({
"active": content_page.isFavorite
}), response => {
console.log(response)
}, response => {
console.log(response)
})
}))
}
}
FluText {