User management improvements (#1101)

* Show more descriptive success messages for User actions

* Check username uniqueness when creating/updating User

* Adjust translations

* Add tests for `validateUsernameUnique()`

Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Steve Richter
2021-05-16 13:25:38 -04:00
committed by GitHub
parent 666c006579
commit e60f2bfa3d
8 changed files with 137 additions and 28 deletions
+3 -1
View File
@@ -87,7 +87,9 @@ const UserEdit = (props) => {
},
{ returnPromise: true }
)
notify('ra.notification.updated', 'info', { smart_count: 1 })
notify('resources.user.notifications.updated', 'info', {
smart_count: 1,
})
permissions === 'admin' ? redirect('/user') : refresh()
} catch (error) {
if (error.body.errors) {