hide revert button when not active
This commit is contained in:
parent
76b005991e
commit
cde63469dc
@ -32,7 +32,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
|
|
||||||
let modified: boolean;
|
let modified: boolean;
|
||||||
$: modified = !isEqual(value, defaultValue);
|
$: modified = !isEqual(value, defaultValue);
|
||||||
$: className = !modified ? "opacity-25" : "";
|
$: className = !modified ? "opacity-0" : "";
|
||||||
|
|
||||||
const isTouchDevice = getContext<boolean>(touchDeviceKey);
|
const isTouchDevice = getContext<boolean>(touchDeviceKey);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user