Skip to content
Snippets Groups Projects
Commit 8e8992b6 authored by Daniel's avatar Daniel
Browse files

ENH: Map is disabled by default, example json file exists now.

parent ce243d19
No related branches found
No related tags found
No related merge requests found
{
"disabled": true
}
...@@ -742,6 +742,9 @@ var caosdb_map = new function () { ...@@ -742,6 +742,9 @@ var caosdb_map = new function () {
var toggle_button = undefined; var toggle_button = undefined;
try { try {
const config = await this.load_config(); const config = await this.load_config();
if (config.disabled) {
return;
}
if (!config.views || config.views.length === 0) { if (!config.views || config.views.length === 0) {
logger.warn("no views in config"); logger.warn("no views in config");
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment