Commit 5b867a73 authored by Jochen Kressin's avatar Jochen Kressin
Browse files

add dynamic style to login buttin

parent dc8624e8
......@@ -23,8 +23,8 @@ export default function (kibana) {
ttl: Joi.number().integer().min(0).default(60 * 60 * 1000),
}).default(),
session: Joi.object().keys({
ttl: Joi.number().integer().min(1).default(60 * 60 * 1000),
keepalive: Joi.boolean().default(true),
ttl: Joi.number().integer().min(0).default(60 * 60 * 1000),
keepalive: Joi.boolean().default(false),
}).default(),
basicauth: Joi.object().keys({
enabled: Joi.boolean().default(true),
......@@ -32,7 +32,8 @@ export default function (kibana) {
title: Joi.string().allow('').default('Please login to Kibana'),
subtitle: Joi.string().allow('').default('If you have forgotten your username or password, please ask your system administrator'),
showbrandimage: Joi.boolean().default(true),
brandimage: Joi.string().default("/plugins/searchguard/assets/searchguard_logo.svg")
brandimage: Joi.string().default("/plugins/searchguard/assets/searchguard_logo.svg"),
buttonstyle: Joi.string().allow('').default("")
}).default(),
}).default(),
multitenancy: Joi.object().keys({
......
......@@ -19,7 +19,7 @@
<input type="password" class="form-control" id="password" name="password" placeholder="Password"
ng-model="ui.credentials.password" required/>
</div>
<button type="submit" class="btn btn-default btn-login">Log in</button>
<button type="submit" class="btn btn-default btn-login" style="{{ui.buttonstyle}}">Log in</button>
</form>
<p class="error-message" ng-if="ui.errorMessage">{{ ui.errorMessage }}</p>
......
......@@ -15,19 +15,11 @@
.btn-default {
background-color: #73b626;
border-bottom-color: #73b626;
border-left-color: #73b626;
border-right-color: #73b626;
border-top-color: #73b626;
color: #ffffff;
}
.btn-default:hover {
background-color: #5e9b24;
border-bottom-color: #5e9b24;
border-left-color: #5e9b24;
border-right-color: #5e9b24;
border-top-color: #5e9b24;
color: #ffffff;
}
......
......@@ -34,6 +34,7 @@ export default function LoginController($scope, $http, $window) {
this.loginsubtitle = chrome.getInjected("basicauth.login.subtitle");
this.showbrandimage = chrome.getInjected("basicauth.login.showbrandimage");
this.brandimage = chrome.getInjected("basicauth.login.brandimage");
this.buttonstyle = chrome.getInjected("basicauth.login.buttonstyle");
if (BRANDIMAGE.startsWith("/plugins")) {
this.brandimage = ROOT + BRANDIMAGE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment