Skip to content

Commit

Permalink
Fixing No such property: atlasData - ATLAS-195
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Jun 10, 2020
1 parent 36de82b commit c44d8dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void controller(PageModel model,
}

AtlasData data = service.getAtlasData();
model.addAttribute("data", data);
model.addAttribute("atlasData", data);
model.addAttribute("stopAskingToConfigure", service.getStopAskingToConfigure());
}
}
12 changes: 6 additions & 6 deletions omod/src/main/webapp/pages/map.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ ui.includeCss("atlas", "atlas-2.0.css")
</script>
<body>
<div id="home">
<iframe src="${data.serverUrlEncoded}" name="atlas" id="atlas"></iframe>
<iframe src="${atlasData.serverUrlEncoded}" name="atlas" id="atlas"></iframe>
<div class="note-container" id="module-control" style="display:none">
<div class="note" id="disabled" style="background-color: rgba(255, 95, 95, 0.73);
<% if (data.moduleEnabled) {%> display: none; <% } %> margin-left: -75px; min-width: 475px;">
<% if (atlasData.moduleEnabled) {%> display: none; <% } %> margin-left: -75px; min-width: 475px;">
<div class="text">
<p><strong>${ ui.message("atlas.disabled")}</strong></p>
<br><p><strong>${ ui.message("atlas.autoUpdates")}</strong></p>
Expand All @@ -48,7 +48,7 @@ ui.includeCss("atlas", "atlas-2.0.css")
</div>
<div class ="atlas-show-dialog"><i class="icon-info-sign small" style="vertical-align: middle"></i> ${ ui.message("atlas.dataSend")}</div>
</div>
<div class="note" id="enabled" style="background-color: rgba(156, 214, 16, 0.83); <% if (!data.moduleEnabled) {%>
<div class="note" id="enabled" style="background-color: rgba(156, 214, 16, 0.83); <% if (!atlasData.moduleEnabled) {%>
display: none; <% } %> margin-left: 0px;">

<div class="text">
Expand All @@ -61,12 +61,12 @@ ui.includeCss("atlas", "atlas-2.0.css")
<div class="text">
<p><strong>${ ui.message("atlas.sendCounts")}</strong></p>
<div id="counts-button" class="btn-group btn-toggle">
<div id="counts-enabled" style="<% if (!data.sendCounts) {%>
<div id="counts-enabled" style="<% if (!atlasData.sendCounts) {%>
display: none;<% } %> ">
<button class="btn btn-xs btn-default active">${ ui.message("atlas.buttonDisabled")}</button>
<button class="btn btn-xs btn-success active">${ ui.message("atlas.buttonEnabled")}</button>
</div>
<div id="counts-disabled" style="<% if (data.sendCounts) {%>
<div id="counts-disabled" style="<% if (atlasData.sendCounts) {%>
display: none;<% } %> ">
<button class="btn btn-xs btn-danger active">${ ui.message("atlas.buttonDisabled")}</button>
<button class="btn btn-xs btn-default active">${ ui.message("atlas.buttonEnabled")}</button>
Expand Down Expand Up @@ -108,7 +108,7 @@ ui.includeCss("atlas", "atlas-2.0.css")
}, false);
</script>

<% if (!data.moduleEnabled && !stopAskingToConfigure) { %>
<% if (!atlasData.moduleEnabled && !stopAskingToConfigure) { %>
<div>
<a href="?stopAskingToConfigure=true">${ ui.message("atlas.stopAskingToConfigure") }</a>
</div>
Expand Down

0 comments on commit c44d8dc

Please sign in to comment.