Add copying status for image detail

This commit is contained in:
Tom Marshall 2021-04-26 11:07:05 -07:00
parent ecf6c6fd77
commit 8cb0308349
1 changed files with 4 additions and 1 deletions

5
vmmd
View File

@ -1510,7 +1510,10 @@ class HttpClientRequestHandler(http.server.BaseHTTPRequestHandler):
r += " <tr><td style=\"font-weight:bold\">Virtual Size<td>%s\n" % (readable_size(img.virtual_size(), ONE_MB))
r += " <tr><td style=\"font-weight:bold\">Physical Size<td>%s\n" % (readable_size(img.physical_size(), ONE_MB))
r += ' <tr><td>&nbsp;<td>&nbsp;\n'
r += ' <tr><td><input style="color:red" type="submit" name="action" value="Delete"><td>&nbsp;'
if img.copying():
r += ' <tr><td style="font-weight:bold">Copying<td>&nbsp;\n'
else:
r += ' <tr><td><input style="color:red" type="submit" name="action" value="Delete"><td>&nbsp;'
r += ' </table>\n'
r += ' </form>\n'
else: