hide download button for dms without a file attached #1590
gitea/salix/master This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-07-11 09:53:16 +02:00
parent 5ce7ca2497
commit 8ecc88b516
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,8 @@
<vn-td center shrink> <vn-td center shrink>
<a target="_blank" <a target="_blank"
vn-tooltip="Download file" vn-tooltip="Download file"
href="api/dms/{{::document.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"> href="api/dms/{{::document.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"
ng-show="document.hasFile">
<vn-icon-button <vn-icon-button
icon="cloud_download" icon="cloud_download"
title="{{'Download PDF' | translate}}"> title="{{'Download PDF' | translate}}">

View File

@ -58,7 +58,8 @@
<vn-td center shrink> <vn-td center shrink>
<a target="_blank" <a target="_blank"
vn-tooltip="Download file" vn-tooltip="Download file"
href="api/dms/{{::document.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"> href="api/dms/{{::document.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"
ng-show="document.hasFile">
<vn-icon-button <vn-icon-button
icon="cloud_download" icon="cloud_download"
title="{{'Download PDF' | translate}}"> title="{{'Download PDF' | translate}}">