Disable buttons while loading

This commit is contained in:
2020-09-15 19:42:09 +00:00
parent 3b8e0097a1
commit 440d389f16
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -541,6 +541,7 @@ export function AdminCert(props) {
const handleCert = (e) => {
e.preventDefault();
if (loading) return;
setLoading(true);
let data = Object();
data[field] = moment.utc().tz('America/Edmonton').format('YYYY-MM-DD');
@@ -555,6 +556,7 @@ export function AdminCert(props) {
const handleUncert = (e) => {
e.preventDefault();
if (loading) return;
setLoading(true);
let data = Object();
data[field] = null;