From aadf392d33c3bb522c9917eb7607595d7f2ce659 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 14 Sep 2019 20:02:19 +0200 Subject: [PATCH] Add textLayer option in StyleManager. Closes #2246 --- src/style_manager/config/config.js | 3 +++ src/style_manager/view/LayerView.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/style_manager/config/config.js b/src/style_manager/config/config.js index eabd6637e..90977d42d 100644 --- a/src/style_manager/config/config.js +++ b/src/style_manager/config/config.js @@ -10,6 +10,9 @@ export default { // Text to show in case no element selected textNoElement: 'Select an element before using Style Manager', + // Text for layers + textLayer: 'Layer', + // Hide the property in case it's not stylable for the // selected component (each component has 'stylable' property) hideNotStylable: true, diff --git a/src/style_manager/view/LayerView.js b/src/style_manager/view/LayerView.js index 9f0ca61f0..1f342ee82 100644 --- a/src/style_manager/view/LayerView.js +++ b/src/style_manager/view/LayerView.js @@ -10,8 +10,8 @@ export default Backbone.View.extend({ }, template(model) { - const { pfx, ppfx } = this; - const label = `Layer ${model.get('index')}`; + const { pfx, ppfx, config } = this; + const label = `${config.textLayer} ${model.get('index')}`; return `