Skip to content

Commit abc5813

Browse files
committed
feat: Add a style manager to manage layer and feature styles - reset layer style action (closes #416)
1 parent 2bdd936 commit abc5813

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

config/default.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,9 @@ const mapLayerActions = [{
217217
route: { name: 'map-layer-chart', params: { layerId: ':_id', layerName: ':name' } } },
218218
{ id: 'edit-layer', label: 'mixins.activity.EDIT_LABEL', icon: 'las la-file-alt', visible: ['isLayerEditable', { name: '$can', params: ['update', 'catalog'] }],
219219
route: { name: 'edit-map-layer', params: { layerId: ':_id', layerName: ':name' } } },
220-
{ id: 'edit-layer-style', label: 'mixins.activity.EDIT_LAYER_STYLE_LABEL', icon: 'las la-border-style', visible: 'isLayerStyleEditable',
220+
{ id: 'edit-layer-style', label: 'mixins.activity.EDIT_LAYER_STYLE_LABEL', icon: 'las la-paint-brush', visible: 'isLayerStyleEditable',
221221
route: { name: 'edit-map-layer-style', params: { layerId: ':_id', layerName: ':name' } } },
222+
{ id: 'reset-layer-style', label: 'mixins.activity.RESET_LAYER_STYLE_LABEL', icon: 'las la-ban', handler: 'onResetLayerStyle', visible: 'isLayerStyleEditable' },
222223
/* Actio to edit all-at-once, now replaced by a submenu with more specific actions
223224
{ id: 'edit-layer-data', label: 'mixins.activity.START_EDIT_DATA_LABEL', icon: 'las la-edit', handler: 'onEditLayerData', visible: 'isLayerDataEditable',
224225
toggle: { icon: 'las la-edit', tooltip: 'mixins.activity.STOP_EDIT_DATA_LABEL' }, component: 'KEditLayerData' },

src/boot/kdk.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default async ({ app, router }) => {
170170

171171
// Register global directives
172172
app.directive('hover', kdkCoreDirectives.vHover)
173-
173+
174174
// Register global components
175175
app.component('KAction', await kdkCoreUtils.loadComponent('action/KAction'))
176176
app.component('KPanel', await kdkCoreUtils.loadComponent('KPanel'))

test/styles.test.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe(`suite:${suite}`, () => {
1414
{ email: '[email protected]', password: 'Pass;word1' }
1515
]
1616
const currentUser = user[1]
17-
17+
1818
before(async () => {
1919
chailint(chai, util)
2020

0 commit comments

Comments
 (0)