1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-12 19:55:59 +01:00

Remove more side menu entries when not allowed to present.

This commit is contained in:
Juliusz Chroboczek 2020-11-30 20:53:12 +01:00
parent 1a92535957
commit 8df19bc760
3 changed files with 27 additions and 20 deletions

View file

@ -860,7 +860,6 @@ h1 {
}
.sidenav form{
display: block;
margin-top: 15px;
}

View file

@ -178,6 +178,8 @@
<fieldset>
<legend>Other Settings</legend>
<form id="sendform">
<label for="sendselect" class="label-first">Send:</label>
<select id="sendselect" class="select select-inline">
<option value="lowest">lowest</option>
@ -185,7 +187,9 @@
<option value="normal" selected>normal</option>
<option value="unlimited">unlimited</option>
</select>
</form>
<form id="requestform">
<label for="requestselect">Receive:</label>
<select id="requestselect" class="select select-inline">
<option value="">nothing</option>
@ -193,16 +197,18 @@
<option value="screenshare">screen share</option>
<option value="everything" selected>everything</option>
</select>
</form>
<form>
<input id="activitybox" type="checkbox">Activity detection</input>
</form>
<form>
</fieldset>
<form id="fileform">
<label for="fileinput">Play local file:</label>
<input type="file" id="fileinput" accept="audio/*,video/*" multiple></input>
</form>
</fieldset>
</div>
</div>

View file

@ -401,6 +401,8 @@ function setButtonsVisibility() {
setVisibility('stopvideobutton', video);
setVisibility('mediaoptions', permissions.present);
setVisibility('sendform', permissions.present);
setVisibility('fileform', permissions.present);
}
/**