Hide Native App
settings section when no items are available
This commit is contained in:
parent
8d5d6f0285
commit
50661b5947
@ -333,6 +333,8 @@ function initialize() {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#native-app").prop("hidden", false);
|
||||||
} else {
|
} else {
|
||||||
defaultClientButton.hide();
|
defaultClientButton.hide();
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@ window.addEventListener("beforeinstallprompt", (installPromptEvent) => {
|
|||||||
$(this).prop("hidden", true);
|
$(this).prop("hidden", true);
|
||||||
})
|
})
|
||||||
.prop("hidden", false);
|
.prop("hidden", false);
|
||||||
|
|
||||||
|
$("#native-app").prop("hidden", false);
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("configuration", function(data) {
|
socket.on("configuration", function(data) {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12" id="native-app" hidden>
|
||||||
<h2>Native app</h2>
|
<h2>Native app</h2>
|
||||||
<button type="button" class="btn" id="webapp-install-button" hidden>Add The Lounge to Home screen</button>
|
<button type="button" class="btn" id="webapp-install-button" hidden>Add The Lounge to Home screen</button>
|
||||||
<button type="button" class="btn" id="make-default-client">Open irc:// URLs with The Lounge</button>
|
<button type="button" class="btn" id="make-default-client">Open irc:// URLs with The Lounge</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user