Browse Source

Add textLayer option in StyleManager. Closes #2246

pull/2295/head
Artur Arseniev 6 years ago
parent
commit
aadf392d33
  1. 3
      src/style_manager/config/config.js
  2. 4
      src/style_manager/view/LayerView.js

3
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,

4
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 `
<div id="${pfx}move" class="${ppfx}no-touch-actions" data-move-layer>

Loading…
Cancel
Save