]> git.proxmox.com Git - pmg-gui.git/commit - js/SpamQuarantine.js
SpamQuarantine: simplify download button by binding its href config
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Oct 2019 10:05:07 +0000 (12:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Oct 2019 10:23:43 +0000 (12:23 +0200)
commit41a290e3f078204dd77b3f74f418a9bfe2c2bc81
treef7e88d6d598b2c751842cdbdc1f5b3958db92351
parent8b1d19f3a1c7e7880b4ee99f386701240d3325ed
SpamQuarantine: simplify download button by binding its href config

This avoids all the strange click event hack. We already have a
button where the users needs to click on, so just use that.

A viewModel with a downloadMailURL formula to assemble the href
allows us to just bind the "href" config from the Download button,
and be done with it..

refactors commit 7ad0de10d630f628b15969ef1478b9276e46197b

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/SpamQuarantine.js