Moved disable microphone into the menu you get when clicking on your own name.
This commit is contained in:
+2
-2
@@ -705,7 +705,7 @@ h1 {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#presentbutton, #unpresentbutton {
|
||||
#presentbutton {
|
||||
white-space: nowrap;
|
||||
margin-right: 0.4em;
|
||||
margin-top: .1em;
|
||||
@@ -1112,7 +1112,7 @@ header .collapse:hover {
|
||||
|
||||
|
||||
@media only screen and (max-width: 1024px) {
|
||||
#presentbutton, #unpresentbutton {
|
||||
#presentbutton {
|
||||
width: auto;
|
||||
}
|
||||
.nav-link {
|
||||
|
||||
@@ -40,11 +40,6 @@
|
||||
<i class="fas fa-play" aria-hidden="true"></i><span class="nav-text"> Enable</span>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button id="unpresentbutton" class="invisible btn btn-cancel" aria-label="Disable microphone">
|
||||
<i class="fas fa-stop" aria-hidden="true"></i><span class="nav-text"> Disable</span>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button id="mutebutton" class="nav-link nav-button" aria-pressed="false" aria-label="Mute microphone">
|
||||
<span><i class="fas fa-microphone-slash" aria-hidden="true"></i></span>
|
||||
|
||||
+6
-8
@@ -651,11 +651,6 @@ getButtonElement('presentbutton').onclick = async function(e) {
|
||||
}
|
||||
};
|
||||
|
||||
getButtonElement('unpresentbutton').onclick = function(e) {
|
||||
e.preventDefault();
|
||||
closeUpMedia('audio');
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {boolean} visible
|
||||
@@ -693,7 +688,6 @@ function setButtonsVisibility() {
|
||||
|
||||
// don't allow multiple presentations
|
||||
setVisibility('presentbutton', canPresent && !local);
|
||||
setVisibility('unpresentbutton', local);
|
||||
|
||||
setVisibility('mutebutton', !connected || canPresent);
|
||||
|
||||
@@ -1785,7 +1779,11 @@ function userMenu(elt) {
|
||||
inviteMenu();
|
||||
}});
|
||||
}
|
||||
items.push({label: 'Restart media', onClick: renegotiateStreams});
|
||||
if(findUpMedia('audio'))
|
||||
items.push({label: 'Turn microphone off', onClick: () => {
|
||||
closeUpMedia('audio');
|
||||
}});
|
||||
items.push({label: 'Restart audio connection', onClick: renegotiateStreams});
|
||||
} else {
|
||||
items.push({label: 'Send file', onClick: () => {
|
||||
sendFile(id);
|
||||
@@ -3420,7 +3418,7 @@ function renegotiateStreams() {
|
||||
}
|
||||
|
||||
commands.renegotiate = {
|
||||
description: 'renegotiate media streams',
|
||||
description: 'restart audio connections',
|
||||
f: (c, r) => {
|
||||
renegotiateStreams();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user