User permissions: fix typo in popup

This commit is contained in:
Michiel Beijen 2018-03-20 20:25:57 +01:00
parent 626bf02a08
commit 6a7228aa82

View file

@ -98,7 +98,7 @@ class App.UiElement.user_permission
if localRole
localElement = item.find("[name=role_ids][value=#{localRole.id}]")
if localElement.prop('checked')
if !confirm(App.i18n.translateInline('Role %s is conflicting with role %s, do you to continue?', role.name, localRole.name, localRole.name))
if !confirm(App.i18n.translateInline('Role %s is conflicting with role %s, do you want to continue?', role.name, localRole.name, localRole.name))
item.find("[name=role_ids][value=#{role_id}]").prop('checked', false)
return
item.find("[name=role_ids][value=#{localRole.id}]").prop('checked', false)