Skip to content

Commit

Permalink
fixup! feat: add availability action to the contacts menu
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Nov 26, 2024
1 parent c787474 commit 5d578b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 62 deletions.
3 changes: 0 additions & 3 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,4 @@
<order>5</order>
</navigation>
</navigations>
<contactsmenu>
<provider>OCA\Calendar\ContactsMenu\AvailabilityModalProvider</provider>
</contactsmenu>
</info>
55 changes: 0 additions & 55 deletions lib/ContactsMenu/AvailabilityModalProvider.php

This file was deleted.

6 changes: 2 additions & 4 deletions src/utils/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ const getLangConfigForVue2DatePicker = (momentLocale) => {
const dateFormat = moment.localeData(momentLocale)
.longDateFormat('L')
.toUpperCase()
const months = getMonthNames()

return {
formatLocale: {
months,
months: getMonthNames(),
monthsShort: getMonthNamesShort(),
weekdays: getDayNames(),
weekdaysShort: getDayNamesShort(),
Expand All @@ -40,8 +39,7 @@ const getLangConfigForVue2DatePicker = (momentLocale) => {
isPM: moment.localeData(momentLocale).isPM,
},
yearFormat: 'YYYY',
months, // Use long names in month picker
monthFormat: 'MMMM',
monthFormat: 'MMM',
monthBeforeYear: dateFormat.indexOf('M') < dateFormat.indexOf('Y'),
}
}
Expand Down

0 comments on commit 5d578b1

Please sign in to comment.