diff options
author | Udo Walter | 2020-08-08 02:16:14 +0200 |
---|---|---|
committer | Udo Walter | 2020-08-08 02:16:14 +0200 |
commit | 6f00e70ecc3a707954e8888810bca34d114758bc (patch) | |
tree | 3a3f0b4a951544357d4a86d6aed84948261d81cb /src/main/resources/bwlpModule.js | |
parent | Reduce SPAM by using .debug() not .info() (diff) | |
download | bwlp-guacamole-ext-6f00e70ecc3a707954e8888810bca34d114758bc.tar.gz bwlp-guacamole-ext-6f00e70ecc3a707954e8888810bca34d114758bc.tar.xz bwlp-guacamole-ext-6f00e70ecc3a707954e8888810bca34d114758bc.zip |
Some UI changes:
- add double click to select location and continue
- add a preselected location (first one in the list without a password)
- add logo above the location selection
- remove redundant text at the bottom
- the logo is now customizable via the guacamole.properties file (property name: slx-logo-url)
Diffstat (limited to 'src/main/resources/bwlpModule.js')
-rw-r--r-- | src/main/resources/bwlpModule.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/resources/bwlpModule.js b/src/main/resources/bwlpModule.js index 0a0f116..f0605e3 100644 --- a/src/main/resources/bwlpModule.js +++ b/src/main/resources/bwlpModule.js @@ -3,3 +3,10 @@ angular.module('group', [ ]); angular.module('index').requires.push('group'); + +// Set custom logo +$http = angular.injector(["ng"]).get("$http"); +$http.get('api/ext/de.bwlehrpool.bwgpul/logoUrl').then(function (response) { + if (!response.data) return + document.documentElement.style.setProperty('--logo', "url('" + response.data + "')") +}) |