minor adjustments

This commit is contained in:
Arvind Tiwari 2017-09-15 16:57:17 +05:30
parent 6136a48961
commit fdb5039c02
3 changed files with 6 additions and 1 deletions

View file

@ -530,6 +530,9 @@
.vm-status-failed {
color: #eb4d5c;
}
.vm-status-failed {
color: #e47f2f;
}
@media (min-width:768px) {
.dashboard-subtitle {

View file

@ -3,7 +3,7 @@ function VMTerminateStatus($container, url) {
.done(function(data) {
setTimeout(function(){
VMTerminateStatus($container, url);
}, 2000);
}, 4000);
})
.fail(function(data) {
VMTerminateSuccess($container, data)

View file

@ -924,6 +924,8 @@ class VirtualMachineView(LoginRequiredMixin, View):
vm = self.get_object()
if vm is None:
if self.request.is_ajax():
storage = messages.get_messages(request)
storage.used = True
raise Http404()
else:
return redirect(reverse('hosting:virtual_machines'))