7c956d1481
* WIP: svelte menu * temp * temp * New menu svelte * Migration of report menu in svelte * Migration of registerCustomMenu for Menu in Svelte Refactor subMenuStore Suppression of old MenuScene and ReportMenu * Suppression of HTML files that aren't use anymore * fix deeployer * First pass on css * First pass on css * Second pass on css and reportMenu * Second pass on css and reportMenu * Second pass on css and reportMenu * Third pass on css and reportMenu * Correction following test * Contact page only if environment variable exist * Update service worker Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com> * Change requested * Change requested Co-authored-by: kharhamel <oognic@gmail.com> Co-authored-by: Gregoire Parant <g.parant@thecodingmachine.com>
12 lines
427 B
TypeScript
12 lines
427 B
TypeScript
import { derived } from "svelte/store";
|
|
import { menuInputFocusStore } from "./MenuStore";
|
|
import { chatInputFocusStore } from "./ChatStore";
|
|
|
|
//derived from the focus on Menu, ConsoleGlobal, Chat and ...
|
|
export const enableUserInputsStore = derived(
|
|
[menuInputFocusStore, chatInputFocusStore],
|
|
([$menuInputFocusStore, $chatInputFocusStore]) => {
|
|
return !$menuInputFocusStore && !$chatInputFocusStore;
|
|
}
|
|
);
|