Use canView.Snapshots for snapshot permissions instead of canView.Events
This commit is contained in:
parent
301d8fa5fa
commit
c12d88d874
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue