Issue refs #1744: hide delete buttons when task closed