fix ReportMenu (#1397)
This commit is contained in:
parent
d7b552a513
commit
19baf7f582
3 changed files with 33 additions and 19 deletions
|
@ -1,11 +1,12 @@
|
|||
import { derived } from "svelte/store";
|
||||
import { menuInputFocusStore } from "./MenuStore";
|
||||
import { chatInputFocusStore } from "./ChatStore";
|
||||
import { showReportScreenStore, userReportEmpty } from "./ShowReportScreenStore";
|
||||
|
||||
//derived from the focus on Menu, ConsoleGlobal, Chat and ...
|
||||
export const enableUserInputsStore = derived(
|
||||
[menuInputFocusStore, chatInputFocusStore],
|
||||
([$menuInputFocusStore, $chatInputFocusStore]) => {
|
||||
return !$menuInputFocusStore && !$chatInputFocusStore;
|
||||
[menuInputFocusStore, chatInputFocusStore, showReportScreenStore],
|
||||
([$menuInputFocusStore, $chatInputFocusStore, $showReportScreenStore]) => {
|
||||
return !$menuInputFocusStore && !$chatInputFocusStore && !($showReportScreenStore !== userReportEmpty);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue