Skip to content

Commit

Permalink
Merge pull request #4328 from nextcloud/backport/4322/stable6.0
Browse files Browse the repository at this point in the history
[stable6.0] fix: show error on empty group name
  • Loading branch information
hamza221 authored Feb 3, 2025
2 parents 4d86dfc + f3cd2da commit d67086c
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 @@ -402,6 +402,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 d67086c

Please sign in to comment.