summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-03 22:17:53 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-03 22:17:53 -0800
commit8049c6083ef6e709e92ea5f230cd8a764931b875 (patch)
tree695942474653b64f4caaf67071394f48946101e2 /ext/fg
parent6005b10f87318d102ac45800940390a3d9fbe1c9 (diff)
don't show add buttons till we know card state for #25
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/css/frame.css4
-rw-r--r--ext/fg/js/frame.js2
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/fg/css/frame.css b/ext/fg/css/frame.css
index 67caf152..dc04184d 100644
--- a/ext/fg/css/frame.css
+++ b/ext/fg/css/frame.css
@@ -86,6 +86,10 @@ body {
opacity: 0.25;
}
+.action-bar .pending {
+ visibility: hidden;
+}
+
/* term styles */
.term-expression {
diff --git a/ext/fg/js/frame.js b/ext/fg/js/frame.js
index 8a99a405..f25ae8da 100644
--- a/ext/fg/js/frame.js
+++ b/ext/fg/js/frame.js
@@ -63,6 +63,8 @@ function api_setActionState({index, state, sequence}) {
} else {
classes.add('disabled');
}
+
+ classes.remove('pending');
}
}