Use canView.Snapshots for snapshot permissions instead of canView.Events

This commit is contained in:
Isaac Connor 2021-08-16 10:27:40 -04:00
parent a1fe4e2638
commit 391fc1fec8
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ function initPage() {
}); });
// Manage the EXPORT button // Manage the EXPORT button
$j('#downloadBtn').prop('disabled', !canView.Events); $j('#downloadBtn').prop('disabled', !canView.Snapshots);
bindButton('#downloadBtn', 'click', null, function onDownloadClick(evt) { bindButton('#downloadBtn', 'click', null, function onDownloadClick(evt) {
evt.preventDefault(); evt.preventDefault();
formData = { formData = {
@ -110,7 +110,7 @@ function initPage() {
downloadTimer = setInterval(downloadProgress, 500); downloadTimer = setInterval(downloadProgress, 500);
}); });
$j('#exportBtn').prop('disabled', !canView.Events); $j('#exportBtn').prop('disabled', !canView.Snapshots);
bindButton('#exportBtn', 'click', null, function onExportClick(evt) { bindButton('#exportBtn', 'click', null, function onExportClick(evt) {
console.log('export clicked'); console.log('export clicked');
evt.preventDefault(); evt.preventDefault();