Skip to content

Commit

Permalink
Merge pull request #4329 from nextcloud/backport/4322/stable7.0
Browse files Browse the repository at this point in the history
[stable7.0] fix: show error on empty group name
  • Loading branch information
hamza221 authored Feb 3, 2025
2 parents 308d663 + 0baf96b commit 826d408
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/AppNavigation/RootNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@ export default {
createNewGroup(e) {
const input = e.target.querySelector('input[type=text]')
const groupName = input.value.trim()
if (groupName.length === 0) {
showError(t('contacts', 'Group name cannot be empty'))
return
}
this.logger.debug('Creating new group', { groupName })

// Check if already exists
Expand Down

0 comments on commit 826d408

Please sign in to comment.