mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
adjust no entities message
This commit is contained in:
parent
5ae4425729
commit
a2aa63e9ed
2 changed files with 1 additions and 10 deletions
|
@ -108,7 +108,7 @@
|
|||
</table>
|
||||
|
||||
<div id="no-entities">
|
||||
No entities found <span id="no-entities-in-view">in view</span> within a <span id="no-entities-radius">100</span> meter radius. Try moving to a different location and refreshing.
|
||||
There are no entities to display. Please check your filters or create an entity to begin.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -142,8 +142,6 @@ function loaded() {
|
|||
elInfoToggleGlyph = elInfoToggle.firstChild;
|
||||
elFooter = document.getElementById("footer-text");
|
||||
elNoEntitiesMessage = document.getElementById("no-entities");
|
||||
elNoEntitiesInView = document.getElementById("no-entities-in-view");
|
||||
elNoEntitiesRadius = document.getElementById("no-entities-radius");
|
||||
|
||||
document.body.onclick = onBodyClick;
|
||||
document.getElementById("entity-name").onclick = function() {
|
||||
|
@ -230,8 +228,6 @@ function loaded() {
|
|||
elFilterTypeCheckboxes.appendChild(elDiv);
|
||||
}
|
||||
|
||||
elNoEntitiesInView.style.display = "none";
|
||||
|
||||
entityList = new ListView(elEntityTableBody, elEntityTableScroll, elEntityTableHeaderRow,
|
||||
createRow, updateRow, clearRow, WINDOW_NONVARIABLE_HEIGHT);
|
||||
|
||||
|
@ -639,10 +635,8 @@ function loaded() {
|
|||
isFilterInView = !isFilterInView;
|
||||
if (isFilterInView) {
|
||||
elFilterInView.setAttribute(FILTER_IN_VIEW_ATTRIBUTE, FILTER_IN_VIEW_ATTRIBUTE);
|
||||
elNoEntitiesInView.style.display = "inline";
|
||||
} else {
|
||||
elFilterInView.removeAttribute(FILTER_IN_VIEW_ATTRIBUTE);
|
||||
elNoEntitiesInView.style.display = "none";
|
||||
}
|
||||
EventBridge.emitWebEvent(JSON.stringify({ type: "filterInView", filterInView: isFilterInView }));
|
||||
refreshEntities();
|
||||
|
@ -650,8 +644,6 @@ function loaded() {
|
|||
|
||||
function onRadiusChange() {
|
||||
elFilterRadius.value = Math.max(elFilterRadius.value, 0);
|
||||
elNoEntitiesRadius.firstChild.nodeValue = elFilterRadius.value;
|
||||
elNoEntitiesMessage.style.display = "none";
|
||||
EventBridge.emitWebEvent(JSON.stringify({ type: 'radius', radius: elFilterRadius.value }));
|
||||
refreshEntities();
|
||||
}
|
||||
|
@ -765,7 +757,6 @@ function loaded() {
|
|||
refreshEntities();
|
||||
});
|
||||
|
||||
|
||||
augmentSpinButtons();
|
||||
|
||||
// Disable right-click context menu which is not visible in the HMD and makes it seem like the app has locked
|
||||
|
|
Loading…
Reference in a new issue