[Libreoffice-commits] online.git: loleaflet/src

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 19 09:55:30 UTC 2020


 loleaflet/src/layer/marker/ProgressOverlay.js |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit e8204c9213dd221ae432babd6fa717cf621a4b48
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Thu Jun 18 17:56:29 2020 +0530
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Fri Jun 19 11:55:11 2020 +0200

    leaflet: show brand name on splashscreen
    
    Change-Id: Ie7d93a134e869e14b5e4c1f8599feb8a9e130c07
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96602
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/layer/marker/ProgressOverlay.js b/loleaflet/src/layer/marker/ProgressOverlay.js
index 7100243d8..090f8b078 100644
--- a/loleaflet/src/layer/marker/ProgressOverlay.js
+++ b/loleaflet/src/layer/marker/ProgressOverlay.js
@@ -3,6 +3,7 @@
  * L.ProgressOverlay is used to overlay progress images over the map.
  */
 
+ /* global brandProductName */
 L.ProgressOverlay = L.Layer.extend({
 
 	options: {
@@ -51,6 +52,12 @@ L.ProgressOverlay = L.Layer.extend({
 		this._container = L.DomUtil.create('div', 'leaflet-progress-layer');
 		this._spinner = L.DomUtil.create('div', 'leaflet-progress-spinner', this._container);
 		this._spinnerCanvas = L.DomUtil.create('canvas', 'leaflet-progress-spinner-canvas', this._spinner);
+
+		var productName = (typeof brandProductName !== 'undefined') ? brandProductName : 'LibreOffice Online (Unsupported)';
+		this._brandLabel = L.DomUtil.create('div', 'leaflet-progress-label', this._container);
+		this._brandLabel.innerHTML = productName;
+
+
 		this._label = L.DomUtil.create('div', 'leaflet-progress-label', this._container);
 		this._progress = L.DomUtil.create('div', 'leaflet-progress', this._container);
 		this._bar = L.DomUtil.create('span', '', this._progress);


More information about the Libreoffice-commits mailing list