mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-10 20:26:48 +00:00
fix(instances): an empty panel says what to do next
- The VM list with no VMs no longer also says that no VM matches the search and the state. - The New VM dialog with no compute yet says to add the first host, with a link to the Computes page (and links there when none is reachable). - The new VM page on a host without a running storage pool or a network says what to add or start and where, instead of "You haven't defined any storage pools" (also when pools exist but are stopped) and "network pools".
This commit is contained in:
parent
0b4a601ecb
commit
129327358d
10 changed files with 278 additions and 225 deletions
|
|
@ -61,7 +61,7 @@ class CreateFormInputTests(TestCase):
|
|||
_, response = render_create_page(self)
|
||||
self.assertIsNone(response.context["vm_form"])
|
||||
self.assertEqual(html.fromstring(response.content).xpath("//button[@name='create']"), [])
|
||||
self.assertTrue(any("storage pools" in str(m) for m in response.context["messages"]))
|
||||
self.assertTrue(any("no running storage pool" in str(m) for m in response.context["messages"]))
|
||||
|
||||
def test_a_host_that_cannot_be_read_is_a_message(self):
|
||||
import libvirt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue