change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-17 14:03:27 +05:30
parent bc0829f1fc
commit 279079e69f
8 changed files with 16 additions and 12 deletions

View File

@ -269,7 +269,11 @@ function Index() {
<p>
<CButton type="submit" size="sm" color="primary" onClick={doGetReport}><CIcon name="cil-scrubber" /> ダウンロード</CButton>
<br/>
{downloadUrl === '' ?
<p></p>
:
<a href={downloadUrl}>Download</a>
}
</p>
:
<CButton disabled type="submit" size="sm" color="primary" onClick={doGetReport}><CIcon name="cil-scrubber" /> ダウンロード</CButton>