Skip to content

Commit

Permalink
Merge pull request #3225 from nextcloud/fix-world-puzzle
Browse files Browse the repository at this point in the history
Fix a word puzzle in NcDashboardWidget component
  • Loading branch information
CarlSchwan authored Sep 12, 2022
2 parents 26d43e9 + 5b58373 commit b186ec4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
5 changes: 1 addition & 4 deletions l10n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,10 @@ msgstr ""
msgid "Hide password"
msgstr ""

msgid "items"
msgstr ""

msgid "Message limit of {count} characters reached"
msgstr ""

msgid "More {dashboardItemType} …"
msgid "More items …"
msgstr ""

msgid "Next"
Expand Down
12 changes: 5 additions & 7 deletions src/components/NcDashboardWidget/NcDashboardWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,13 @@ export default {
default: '',
},
/**
* The type of elements to show more.
* The text of show more button.
*
* Expected to be in the form "More {itemName} …"
*/
showMoreText: {
showMoreLabel: {
type: String,
default: t('items'),
default: t('More items'),
},
/**
* A boolean to put the widget in a loading state.
Expand Down Expand Up @@ -307,10 +309,6 @@ export default {
showMore() {
return this.showMoreUrl && this.items.length >= this.maxItemNumber
},

showMoreLabel() {
return t('More {dashboardItemType} …', { dashboardItemType: this.showMoreText })
},
},
}
</script>
Expand Down

0 comments on commit b186ec4

Please sign in to comment.