Implement deleting a calendar

This commit is contained in:
Raimund Schlüßler 2018-11-02 07:58:33 +01:00
parent a14f3cdb74
commit f45b31464f
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -84,7 +84,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
<span>{{ t('tasks', 'Download') }}</span>
</a>
</li>
<confirmation :message="deleteMessage(calendar.displayName)" @delete-calendar="deleteCalendar(calendar, ...arguments)" />
<confirmation :message="deleteMessage(calendar.displayName)" @delete-calendar="deleteCalendar({calendar: calendar})" />
</ul>
</popover>
</ul>
@ -221,7 +221,8 @@ export default {
),
methods: Object.assign(
mapActions([
'changeCalendar'
'changeCalendar',
'deleteCalendar'
]),
{
hideCollection: function(collection) {
@ -324,9 +325,6 @@ export default {
},
deleteMessage: function(name) {
return t('tasks', 'This will delete the calendar "%s" and all corresponding events and tasks.').replace('%s', name)
},
deleteCalendar: function(calendar) {
console.log('Delete calendar ' + calendar.id)
}
}
)