diff --git a/addons/api/addon/models/group.js b/addons/api/addon/models/group.js index 4b6535065..59a87a180 100644 --- a/addons/api/addon/models/group.js +++ b/addons/api/addon/models/group.js @@ -46,8 +46,6 @@ export default class GroupModel extends GeneratedGroupModel { memberIDs, }; // There is no "deep merge" in ES. - // All of this nonsense is here to ensure we get - // a decent merge of `adapterOptions`. return this.save({ ...options, adapterOptions: { @@ -71,8 +69,6 @@ export default class GroupModel extends GeneratedGroupModel { memberIDs, }; // There is no "deep merge" in ES. - // All of this nonsense is here to ensure we get - // a decent merge of `adapterOptions`. return this.save({ ...options, adapterOptions: { diff --git a/addons/api/addon/models/role.js b/addons/api/addon/models/role.js index 9e37867ad..adc7778f5 100644 --- a/addons/api/addon/models/role.js +++ b/addons/api/addon/models/role.js @@ -53,8 +53,6 @@ export default class RoleModel extends GeneratedRoleModel { principalIDs, }; // There is no "deep merge" in ES. - // All of this nonsense is here to ensure we get - // a decent merge of `adapterOptions`. return this.save({ ...options, adapterOptions: { @@ -78,8 +76,6 @@ export default class RoleModel extends GeneratedRoleModel { principalIDs, }; // There is no "deep merge" in ES. - // All of this nonsense is here to ensure we get - // a decent merge of `adapterOptions`. return this.save({ ...options, adapterOptions: { diff --git a/addons/api/addon/models/target.js b/addons/api/addon/models/target.js index 086f95f79..c5f80ae4e 100644 --- a/addons/api/addon/models/target.js +++ b/addons/api/addon/models/target.js @@ -52,8 +52,6 @@ export default class TargetModel extends GeneratedTargetModel { hostSetIDs, }; // There is no "deep merge" in ES. - // All of this nonsense is here to ensure we get - // a decent merge of `adapterOptions`. return this.save({ ...options, adapterOptions: { @@ -77,8 +75,6 @@ export default class TargetModel extends GeneratedTargetModel { hostSetIDs, }; // There is no "deep merge" in ES. - // All of this nonsense is here to ensure we get - // a decent merge of `adapterOptions`. return this.save({ ...options, adapterOptions: { diff --git a/addons/api/addon/models/user.js b/addons/api/addon/models/user.js index c2be5cfb0..567ebd81c 100644 --- a/addons/api/addon/models/user.js +++ b/addons/api/addon/models/user.js @@ -33,8 +33,6 @@ export default class UserModel extends GeneratedUserModel { accountIDs, }; // There is no "deep merge" in ES. - // All of this nonsense is here to ensure we get - // a decent merge of `adapterOptions`. return this.save({ ...options, adapterOptions: { @@ -58,8 +56,6 @@ export default class UserModel extends GeneratedUserModel { accountIDs, }; // There is no "deep merge" in ES. - // All of this nonsense is here to ensure we get - // a decent merge of `adapterOptions`. return this.save({ ...options, adapterOptions: { diff --git a/ui/core/app/components/form/account/password/change-password/index.hbs b/ui/core/app/components/form/account/password/change-password/index.hbs index 24548e843..954da26c1 100644 --- a/ui/core/app/components/form/account/password/change-password/index.hbs +++ b/ui/core/app/components/form/account/password/change-password/index.hbs @@ -1,6 +1,6 @@ this.resetPasswords()); - fn(currentPassword, newPassword); + submit(fn, currentPassword, newPassword) { + run(() => this.resetPasswords()); + run(() => fn(currentPassword, newPassword)); } /** diff --git a/ui/core/app/components/form/account/password/set-password/index.hbs b/ui/core/app/components/form/account/password/set-password/index.hbs index b77d6b659..9008a9094 100644 --- a/ui/core/app/components/form/account/password/set-password/index.hbs +++ b/ui/core/app/components/form/account/password/set-password/index.hbs @@ -1,5 +1,5 @@ this.resetPassword()); - fn(password); + submit(fn, password) { + run(() => this.resetPassword()); + run(() => fn(password)); } } diff --git a/ui/core/app/templates/scopes/scope/auth-methods.hbs b/ui/core/app/templates/scopes/scope/auth-methods.hbs index c24cd6895..fb4d78b4a 100644 --- a/ui/core/app/templates/scopes/scope/auth-methods.hbs +++ b/ui/core/app/templates/scopes/scope/auth-methods.hbs @@ -1 +1,3 @@ +{{title (t "resources.auth-method.title_plural")}} + {{outlet}} diff --git a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account.hbs b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account.hbs index e2147cab0..d66e83390 100644 --- a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account.hbs +++ b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account.hbs @@ -1 +1,3 @@ -{{outlet}} \ No newline at end of file +{{title @model.displayName}} + +{{outlet}} diff --git a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/set-password.hbs b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/set-password.hbs index eba48df37..315877a6f 100644 --- a/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/set-password.hbs +++ b/ui/core/app/templates/scopes/scope/auth-methods/auth-method/accounts/account/set-password.hbs @@ -1,3 +1,5 @@ +{{title (t 'actions.set-password')}} +

{{t "resources.role.principal.description"}}

- {{@model.id}} + {{@model.role.id}}