chore: 🤖 auto-dismiss auth error notifications (#1384)

* chore: 🤖 auto-dismiss auth error notifications

* chore: 🤖 apply login error auto-dismiss to desktop

* Update addons/core/addon/decorators/notify.js

Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>

* chore: 🤖 explain sticky defaulting

Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
Co-authored-by: Carlos Alcaide Corvo <ccorvo@hashicorp.com>
This commit is contained in:
authored and GitHub committed 2022-10-25 16:09:33 -07:00
1 parent 3c05337832
commit bfc212440d
3 files changed
+24 -5

No files matched your search

@@ -47,7 +47,10 @@ export default class ScopesScopeAuthenticateMethodRoute extends Route {
*/
@action
@loading
@notifyError(() => 'errors.authentication-failed.title', { catch: true })
@notifyError(() => 'errors.authentication-failed.title', {
sticky: false,
catch: true,
})
async authenticate(creds) {
const scope = this.modelFor('scopes.scope');
const authMethod = this.modelFor('scopes.scope.authenticate.method');