Skip to content

Commit

Permalink
#57 fix: only show delete button if bookmark can be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Feb 10, 2024
1 parent 3c1c2d4 commit e13e200
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# QOwnNotes Web Companion Changelog

## 2024.2.4
- now only a delete button is shown in the bookmarks list if the bookmark
can be deleted (for [#57](https://github.com/qownnotes/web-companion/issues/57))

## 2024.2.3
- the missing delete code was added (for [#57](https://github.com/qownnotes/web-companion/issues/57))
- the minimum height of the popup was raised to 300px to allow
Expand Down
2 changes: 1 addition & 1 deletion src/pages/PopupPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</div>
</q-td>
<q-td key="toolbar" :props="props">
<q-btn size="xs" round color="secondary" icon="delete" @click="deleteBookmark(props.row.markdown)">
<q-btn v-if="props.row.markdown" size="xs" round color="secondary" icon="delete" @click="deleteBookmark(props.row.markdown)">
<q-tooltip class="bg-accent">{{ getLocale('DeleteBookmark') }}</q-tooltip>
</q-btn>
</q-td>
Expand Down

0 comments on commit e13e200

Please sign in to comment.