mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-12 15:24:39 +00:00
fix(@desktop/browser): [base_bc] renaming bookmark is not persistent
Edit existing bookmark name is now correctly updated in the view. Fixes #4549
This commit is contained in:
parent
e3a5c6bad3
commit
bed7ca20fb
@ -67,6 +67,7 @@ method updateBookmark*(self: Service, oldUrl, newUrl, newName: string): R =
|
||||
|
||||
let response = status_go.updateBookmark(oldUrl, newUrl, newName).result
|
||||
self.bookmarks.del(oldUrl)
|
||||
self.bookmarks[newUrl] = BookmarkDto()
|
||||
self.bookmarks[newUrl].url = newUrl
|
||||
self.bookmarks[newUrl].name = newName
|
||||
discard response.getProp("imageUrl", self.bookmarks[newurl].imageUrl)
|
||||
|
@ -39,7 +39,11 @@ PopupMenu {
|
||||
icon.source: Style.svg("edit")
|
||||
icon.width: 16
|
||||
icon.height: 16
|
||||
onTriggered: editFavoriteTriggered()
|
||||
onTriggered: {
|
||||
// Force reloading current favorite as it could have been modified when edited:
|
||||
favoritePopupMenu.currentFavorite = BookmarksStore.getCurrentFavorite(url)
|
||||
editFavoriteTriggered()
|
||||
}
|
||||
}
|
||||
|
||||
Action {
|
||||
|
Loading…
x
Reference in New Issue
Block a user