Skip to content
Snippets Groups Projects
Verified Commit d2d7b2fa authored by Loïs Poujade's avatar Loïs Poujade
Browse files

Hide download button on notes/links

Closes #17
parent 2220dd1a
No related branches found
No related tags found
No related merge requests found
...@@ -916,6 +916,9 @@ PopupPanelWidget.prototype.createPopupContent = function (tag) { ...@@ -916,6 +916,9 @@ PopupPanelWidget.prototype.createPopupContent = function (tag) {
imageBoxDiv.append(displayOriginalImage); imageBoxDiv.append(displayOriginalImage);
} }
popupLeftDiv.append(imageBoxDiv); popupLeftDiv.append(imageBoxDiv);
if (this.getMetadata('Rekall->Type') != "rekall/marker"
&& this.getMetadata('Rekall->Type') != "rekall/link") {
let downloadElement = $('<a>'); let downloadElement = $('<a>');
downloadElement downloadElement
.html("Download File") .html("Download File")
...@@ -924,6 +927,7 @@ PopupPanelWidget.prototype.createPopupContent = function (tag) { ...@@ -924,6 +927,7 @@ PopupPanelWidget.prototype.createPopupContent = function (tag) {
.attr('href', fileDirectLink) .attr('href', fileDirectLink)
.attr('download', this.getMetadata('File->File Name')); .attr('download', this.getMetadata('File->File Name'));
popupLeftDiv.append(downloadElement); popupLeftDiv.append(downloadElement);
}
if (popupPanelWidget.canEdit()) { if (popupPanelWidget.canEdit()) {
let deleteElement = $('<div>'); let deleteElement = $('<div>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment