Skip to content

Commit

Permalink
Change default icon for the Log in with Elasticsearch login selecto…
Browse files Browse the repository at this point in the history
…r button. (#65282)
  • Loading branch information
azasypkin authored May 5, 2020
1 parent 23282a2 commit af8f9fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions x-pack/plugins/security/server/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ describe('config schema', () => {
"basic1": Object {
"description": "Log in with Elasticsearch",
"enabled": true,
"icon": "logoElastic",
"icon": "logoElasticsearch",
"order": 0,
"showInSelector": true,
},
Expand Down Expand Up @@ -467,7 +467,7 @@ describe('config schema', () => {
"token1": Object {
"description": "Log in with Elasticsearch",
"enabled": true,
"icon": "logoElastic",
"icon": "logoElasticsearch",
"order": 0,
"showInSelector": true,
},
Expand Down Expand Up @@ -746,14 +746,14 @@ describe('config schema', () => {
"basic1": Object {
"description": "Log in with Elasticsearch",
"enabled": true,
"icon": "logoElastic",
"icon": "logoElasticsearch",
"order": 0,
"showInSelector": true,
},
"basic2": Object {
"description": "Log in with Elasticsearch",
"enabled": false,
"icon": "logoElastic",
"icon": "logoElasticsearch",
"order": 1,
"showInSelector": true,
},
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/security/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const providersConfigSchema = schema.object(
defaultMessage: 'Log in with Elasticsearch',
}),
}),
icon: schema.string({ defaultValue: 'logoElastic' }),
icon: schema.string({ defaultValue: 'logoElasticsearch' }),
showInSelector: schema.boolean({
defaultValue: true,
validate: value => {
Expand All @@ -78,7 +78,7 @@ const providersConfigSchema = schema.object(
defaultMessage: 'Log in with Elasticsearch',
}),
}),
icon: schema.string({ defaultValue: 'logoElastic' }),
icon: schema.string({ defaultValue: 'logoElasticsearch' }),
showInSelector: schema.boolean({
defaultValue: true,
validate: value => {
Expand Down
12 changes: 6 additions & 6 deletions x-pack/plugins/security/server/routes/views/login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ describe('Login view routes', () => {
name: 'basic1',
type: 'basic',
usesLoginForm: true,
icon: 'logoElastic',
icon: 'logoElasticsearch',
description: 'Log in with Elasticsearch',
},
],
Expand All @@ -264,7 +264,7 @@ describe('Login view routes', () => {
name: 'token1',
type: 'token',
usesLoginForm: true,
icon: 'logoElastic',
icon: 'logoElasticsearch',
description: 'Log in with Elasticsearch',
},
],
Expand Down Expand Up @@ -309,7 +309,7 @@ describe('Login view routes', () => {
name: 'basic1',
type: 'basic',
usesLoginForm: true,
icon: 'logoElastic',
icon: 'logoElasticsearch',
description: 'Log in with Elasticsearch',
},
],
Expand All @@ -325,7 +325,7 @@ describe('Login view routes', () => {
name: 'basic1',
type: 'basic',
usesLoginForm: true,
icon: 'logoElastic',
icon: 'logoElasticsearch',
description: 'Log in with Elasticsearch',
},
],
Expand All @@ -340,7 +340,7 @@ describe('Login view routes', () => {
order: 0,
description: 'some-desc1',
hint: 'some-hint1',
icon: 'logoElastic',
icon: 'logoElasticsearch',
},
},
saml: {
Expand All @@ -355,7 +355,7 @@ describe('Login view routes', () => {
name: 'basic1',
description: 'some-desc1',
hint: 'some-hint1',
icon: 'logoElastic',
icon: 'logoElasticsearch',
usesLoginForm: true,
},
{
Expand Down

0 comments on commit af8f9fa

Please sign in to comment.