chore: 🤖 display auth method names in auth form, if available (#1113)

This commit is contained in:
Randall Morey authored and GitHub committed 2022-05-19 15:56:48 -04:00
1 parent 698160d423
commit 509215f787
3 files changed
+14 -6

No files matched your search

+3 -1
View File
@@ -489,7 +489,9 @@ $chevron-down: url("data:image/svg+xml;utf-8,<svg viewBox='0 0 24 24' fill='%231
.is-loading {
.rose-icon {
@keyframes hds-flight-icon-animation-rotation {
to {transform: rotate(360deg);}
to {
transform: rotate(360deg);
}
}
> svg {
@@ -32,7 +32,11 @@
@route='scopes.scope.authenticate.method'
@model={{authMethod.id}}
>
{{t (concat 'resources.auth-method.types.' authMethod.type)}}
{{#if authMethod.name}}
{{authMethod.name}}
{{else}}
{{t (concat 'resources.auth-method.types.' authMethod.type)}}
{{/if}}
</nav.link>
{{/each}}
{{else}}
@@ -43,7 +47,11 @@
@route='scopes.scope.authenticate.method'
@model={{authMethod.id}}
>
{{t (concat 'resources.auth-method.types.' authMethod.type)}}
{{#if authMethod.name}}
{{authMethod.name}}
{{else}}
{{t (concat 'resources.auth-method.types.' authMethod.type)}}
{{/if}}
</nav.link>
{{/unless}}
{{/each}}
+1 -3
View File
@@ -86,9 +86,7 @@ const createWindow = (partition, closeWindowCB) => {
// If the user-specified origin changes, reload the page so that
// the CSP can be refreshed with the this source allowed
runtimeSettings.onOriginChange(() =>
browserWindow.loadURL(emberAppURL)
);
runtimeSettings.onOriginChange(() => browserWindow.loadURL(emberAppURL));
// Load the ember application
browserWindow.loadURL(emberAppURL);