2021-06-18 01:17:43 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="typescript">
|
|
|
|
import WithContext from "components/WithContext.svelte";
|
2021-07-05 18:15:03 +02:00
|
|
|
import { fieldFocusedKey, inCodableKey } from "./context-keys";
|
2021-06-18 01:17:43 +02:00
|
|
|
</script>
|
|
|
|
|
2021-07-05 18:15:03 +02:00
|
|
|
<WithContext key={fieldFocusedKey} let:context={fieldFocused}>
|
2021-06-18 01:17:43 +02:00
|
|
|
<WithContext key={inCodableKey} let:context={inCodable}>
|
2021-07-05 18:15:03 +02:00
|
|
|
<slot disabled={!fieldFocused || inCodable} />
|
2021-06-18 01:17:43 +02:00
|
|
|
</WithContext>
|
|
|
|
</WithContext>
|