Skip to content

Commit

Permalink
save button in settings close menu (workadventure#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
GRL78 authored Sep 14, 2021
1 parent 9006283 commit 680e538
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions front/src/Components/Menu/SettingsSubMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {localUserStore} from "../../Connexion/LocalUserStore";
import {videoConstraintStore} from "../../Stores/MediaStore";
import {HtmlUtils} from "../../WebRtc/HtmlUtils";
import {isMobile} from "../../Enum/EnvironmentVariable";
import {menuVisiblilityStore} from "../../Stores/MenuStore";
let fullscreen : boolean = localUserStore.getFullscreen();
let notification : boolean = localUserStore.getNotification() === 'granted';
Expand All @@ -22,6 +23,8 @@ function saveSetting(){
previewValueVideo = valueVideo;
videoConstraintStore.setFrameRate(valueVideo);
}
closeMenu();
}
function changeFullscreen() {
Expand Down Expand Up @@ -50,6 +53,10 @@ function changeNotification() {
})
}
}
function closeMenu() {
menuVisiblilityStore.set(false);
}
</script>

<div class="settings-main" on:submit|preventDefault={saveSetting}>
Expand Down

0 comments on commit 680e538

Please sign in to comment.