mirror of
https://github.com/KDE/kasts.git
synced 2025-01-10 15:53:11 +01:00
Add contextual actions to EntryPage
This commit is contained in:
parent
9364a5b88f
commit
5026703bdd
@ -100,5 +100,32 @@ Kirigami.ScrollablePage {
|
||||
onTriggered: entry.enclosure.deleteFile()
|
||||
visible: entry.enclosure && entry.enclosure.status === Enclosure.Downloaded
|
||||
}
|
||||
contextualActions: [
|
||||
Kirigami.Action {
|
||||
text: i18n("Reset play position")
|
||||
visible: entry.enclosure && entry.enclosure.playPosition > 1000
|
||||
onTriggered: entry.enclosure.playPosition = 0
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: entry.read ? i18n("Unmark as Played") : i18n("Mark as Played")
|
||||
onTriggered: {
|
||||
if(entry.read) {
|
||||
entry.read = false
|
||||
} else {
|
||||
entry.read = true
|
||||
}
|
||||
}
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: entry.new ? i18n("Unmark as New") : i18n("Mark as New")
|
||||
onTriggered: {
|
||||
if(entry.new) {
|
||||
entry.new = false
|
||||
} else {
|
||||
entry.new = true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user