Skip to content

Commit

Permalink
Move recurrenceRuleFormat.js from filter to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup authored and raimund-schluessler committed Jan 10, 2024
1 parent 2015ad4 commit d51baa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/AppSidebar/RepeatItem/RepeatSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<template>
<span v-if="display">
{{ recurrenceRule | formatRecurrenceRule }}
{{ formatRecurrenceRule(recurrenceRule) }}
</span>
<span v-else>
{{ t('tasks', 'No recurrence') }}
Expand All @@ -32,13 +32,10 @@

<script>
import { translate as t } from '@nextcloud/l10n'
import formatRecurrenceRule from '../../../filters/recurrenceRuleFormat.js'
import formatRecurrenceRule from '../../../utils/recurrenceRuleFormat.js'

export default {
name: 'RepeatSummary',
filters: {
formatRecurrenceRule,
},
props: {
/**
* The recurrence-rule object as defined on the eventComponent
Expand All @@ -61,6 +58,7 @@ export default {
},
methods: {
t,
formatRecurrenceRule,
},
}
</script>
File renamed without changes.

0 comments on commit d51baa6

Please sign in to comment.