nextcloud / calendar-availability-vue

Weekly calendar availability component for Nextcloud apps.

Home Page:https://www.npmjs.com/package/@nextcloud/calendar-availability-vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buttons should use material-design-icons

raimund-schluessler opened this issue · comments

The buttons here

<button :key="`slot-${day.id}-${idx}-btn`"
class="icon-delete delete-slot button"
:title="l10nDeleteSlot"
@click="removeSlot(day, idx)" />

and here
<button :key="`add-slot-${day.id}`"
:disabled="loading"
class="icon-add add-another button"
:title="l10nAddSlot"
@click="addSlot(day)" />

should use material-design icons to be in line with the rest of the Calendar app.

Since the new button component from nextcloud/vue@5 is not released yet, one option would be to use ActionButton instead. Similar to how it is done in the trash bin:
https://github.com/nextcloud/calendar/blob/master/src/components/AppNavigation/CalendarList/Trashbin.vue#L88-L96