diff --git a/umap/static/umap/js/modules/schema.js b/umap/static/umap/js/modules/schema.js index d2142f8c..63f36d76 100644 --- a/umap/static/umap/js/modules/schema.js +++ b/umap/static/umap/js/modules/schema.js @@ -118,6 +118,9 @@ export const SCHEMA = { default: false, label: translate('Animated transitions'), }, + edit_status: { + type: Number, + }, editinosmControl: { type: Boolean, impacts: ['ui'], @@ -125,6 +128,9 @@ export const SCHEMA = { label: translate('Display the control to open OpenStreetMap editor'), default: null, }, + editors: { + type: Array, + }, embedControl: { type: Boolean, impacts: ['ui'], @@ -362,6 +368,9 @@ export const SCHEMA = { type: Object, impacts: ['background'], }, + owner: { + type: Object, + }, permanentCredit: { type: 'Text', impacts: ['ui'], @@ -436,6 +445,9 @@ export const SCHEMA = { label: translate('Display the search control'), default: true, }, + share_status: { + type: Number, + }, shortCredit: { type: String, impacts: ['ui'], @@ -500,6 +512,9 @@ export const SCHEMA = { helpEntries: ['sync'], default: false, }, + team: { + type: Object, + }, tilelayer: { type: Object, impacts: ['background'], @@ -566,7 +581,6 @@ export const SCHEMA = { type: Object, impacts: ['data'], }, - _referenceVersion: { type: Number, impacts: ['data'], diff --git a/umap/static/umap/js/modules/sync/updaters.js b/umap/static/umap/js/modules/sync/updaters.js index 606ea63f..34fb656c 100644 --- a/umap/static/umap/js/modules/sync/updaters.js +++ b/umap/static/umap/js/modules/sync/updaters.js @@ -146,9 +146,9 @@ export class FeatureUpdater extends BaseUpdater { export class MapPermissionsUpdater extends BaseUpdater { update({ key, value }) { - this.updateObjectValue(this._umap.permissions, key, value) - // if (fieldInSchema(key)) { - // } + if (fieldInSchema(key)) { + this.updateObjectValue(this._umap.permissions, key, value) + } } getStoredObject(metadata) { @@ -158,9 +158,9 @@ export class MapPermissionsUpdater extends BaseUpdater { export class DataLayerPermissionsUpdater extends BaseUpdater { update({ key, value, metadata }) { - this.updateObjectValue(this.getDataLayerFromID(metadata.id), key, value) - // if (fieldInSchema(key)) { - // } + if (fieldInSchema(key)) { + this.updateObjectValue(this.getDataLayerFromID(metadata.id), key, value) + } } getStoredObject(metadata) {