minor adjustments
This commit is contained in:
parent
6136a48961
commit
fdb5039c02
3 changed files with 6 additions and 1 deletions
|
@ -530,6 +530,9 @@
|
|||
.vm-status-failed {
|
||||
color: #eb4d5c;
|
||||
}
|
||||
.vm-status-failed {
|
||||
color: #e47f2f;
|
||||
}
|
||||
|
||||
@media (min-width:768px) {
|
||||
.dashboard-subtitle {
|
||||
|
|
|
@ -3,7 +3,7 @@ function VMTerminateStatus($container, url) {
|
|||
.done(function(data) {
|
||||
setTimeout(function(){
|
||||
VMTerminateStatus($container, url);
|
||||
}, 2000);
|
||||
}, 4000);
|
||||
})
|
||||
.fail(function(data) {
|
||||
VMTerminateSuccess($container, data)
|
||||
|
|
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue