hide revert button when not active

This commit is contained in:
Damien Elmes 2021-06-22 09:38:28 +10:00
parent 76b005991e
commit cde63469dc

View File

@ -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);