Remove confirmation dialog when deleting place bookmarks

This commit is contained in:
2026-03-13 13:27:01 +04:00
parent bcb9b20e85
commit a8613ab81a
3 changed files with 33 additions and 48 deletions

View File

@@ -25,10 +25,8 @@ export default class PlaceListsManager extends Component {
@action
async toggleSaved() {
if (this.isSaved) {
if (confirm(`Remove "${this.args.place.title}" from saved places?`)) {
await this.storage.removePlace(this.args.place);
if (this.args.onClose) this.args.onClose();
}
await this.storage.removePlace(this.args.place);
if (this.args.onClose) this.args.onClose();
} else {
await this.storage.storePlace(this.args.place);
}