mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
hide revert button when not active
This commit is contained in:
parent
76b005991e
commit
cde63469dc
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
|
||||
let modified: boolean;
|
||||
$: modified = !isEqual(value, defaultValue);
|
||||
$: className = !modified ? "opacity-25" : "";
|
||||
$: className = !modified ? "opacity-0" : "";
|
||||
|
||||
const isTouchDevice = getContext<boolean>(touchDeviceKey);
|
||||
|
||||
|
|
Loading…
Reference in a new issue