mobile-wizard: use mobile colorpickers for gradient

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic5ef466713cec184328d945424affb0d1a2a3b30
This commit is contained in:
Szymon Kłos 2021-07-09 15:33:16 +02:00 committed by Szymon Kłos
parent 9d86193972
commit 4cb9d8cd33

View file

@ -660,7 +660,17 @@ L.Control.MobileWizardBuilder = L.Control.JSDialogBuilder.extend({
return false;
},
// apply needed modifications for mobile
_modifySidebarNodes: function(data) {
for (var i in data) {
if ((data[i].id === 'fillgrad1' || data[i].id === 'fillgrad2') && data[i].type === 'menubutton')
data[i].type = 'colorlistbox';
}
},
build: function(parent, data) {
this._modifySidebarNodes(data);
for (var childIndex in data) {
if (!data[childIndex])
continue;