Commit Graph

436 Commits

Author SHA1 Message Date
Arthur Lu
d52e730dd1 remove padding from first form fieldset
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-18 22:58:00 +00:00
Arthur Lu
2fe9e847c9 hide instance actions if the node is offline
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:45:16 -08:00
Arthur Lu
23f3153294 set instance to original if request returns an error
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:41:52 -08:00
Arthur Lu
1b4e818b6d fix unknown status check order
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:36:34 -08:00
Arthur Lu
d957fb35ef fix instance icon assignment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:34:22 -08:00
Arthur Lu
1c0faf2a71 show blank name if instance is unknown,
show stopped icon if instance is unknown

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:33:21 -08:00
Arthur Lu
f2da3882dc ensure node search returns a node
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:29:10 -08:00
Arthur Lu
3457e46a69 fix variable item typo
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:27:15 -08:00
Arthur Lu
7127439970 fix finding nodes in resources
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:26:49 -08:00
Arthur Lu
94bf131c43 fix instance population
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:26:19 -08:00
Arthur Lu
1d4981c93f use resource path rather than querying each node
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:24:51 -08:00
Arthur Lu
9dbbb5909a remove unrelated comments
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:02:02 -08:00
Arthur Lu
004c5279fb remove unused function getDiskImageOptions
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:56:20 -08:00
Arthur Lu
720413760a keep disk filename prefixes to assign value correctly
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:50:59 -08:00
Arthur Lu
8cd7142d97 remove iso/ prefix from disk filename
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:48:50 -08:00
Arthur Lu
9d3ab59768 fix varaible naming for storage in handleStorageChange
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:45:29 -08:00
Arthur Lu
445fc10e5f fix varaible instantiation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:44:34 -08:00
Arthur Lu
c5224b71dc fix disk image select id assignment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:43:50 -08:00
Arthur Lu
bd92558d66 add storage change handler
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:39:28 -08:00
Arthur Lu
9a69f541c7 fix config disk grid layout
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:26:42 -08:00
Arthur Lu
6c18a44225 use grid-column to span some inputs
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:15:04 -08:00
Arthur Lu
fb1ed3ce4b remove storage and iso from disk image options
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:04:28 -08:00
Arthur Lu
0bfe716ecb populate diskImageSelect with options
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:59:06 -08:00
Arthur Lu
a4b7d7fd3e add options to disk image selection
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:48:09 -08:00
Arthur Lu
4b9ed93669 add ids to storage and size input
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:31:26 -08:00
Arthur Lu
bc89676f8a set non resiable disk size value to 0
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:26:11 -08:00
Arthur Lu
2d55625675 fix handleDeviceChange not implemented
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:19:07 -08:00
Arthur Lu
03f6493b63 min input content,
disable disk device reassignment for all disks

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:18:22 -08:00
Arthur Lu
3688b44c56 hide device input if device input is not required
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:01:06 -08:00
Arthur Lu
89c7942901 add hidden class
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 09:56:48 -08:00
Arthur Lu
e5bf7e383a remove unit selector for unit text,
hide size input and unit text if disk is not resizable

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 09:52:20 -08:00
Arthur Lu
1e035e878c change volume contents includes to be specific to bus type
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 16:14:33 -08:00
Arthur Lu
c8141943f5 fix min checking
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 16:10:56 -08:00
Arthur Lu
0d2a2763c9 fix invalid query selector ids
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 16:08:20 -08:00
Arthur Lu
810d33aba9 fix query selector in handleUnitChange
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 16:07:06 -08:00
Arthur Lu
767c239c82 set minimum size on unit change,
check min  size value on unit change

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 16:06:19 -08:00
Arthur Lu
bbfdfa0f98 disable size unit select if resizable is false
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:50:32 -08:00
Arthur Lu
3e03bc5ede fix disk config layout
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:48:54 -08:00
Arthur Lu
e11f281a59 add required params to addDiskLine
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:48:20 -08:00
Arthur Lu
299f60a878 fix variable naming conflict
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:47:13 -08:00
Arthur Lu
eaf51064ac add selector for size unit
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:45:51 -08:00
Arthur Lu
abe70d0b72 remove unit from size
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:27:41 -08:00
Arthur Lu
2ae003b98c fix config disk layout
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:25:03 -08:00
Arthur Lu
a2b4dcd985 fix delete button alt text
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:24:24 -08:00
Arthur Lu
14ee712d3c add delete disk button
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:22:39 -08:00
Arthur Lu
36d93017f9 fix storageSelect and sizeInput populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:16:02 -08:00
Arthur Lu
0aa983594f fix storage options populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:14:34 -08:00
Arthur Lu
ea06755a1e fix icon alt again
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:13:17 -08:00
Arthur Lu
9c37a9e562 fix bus prefix issue
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:12:46 -08:00
Arthur Lu
f378a1c7f9 fix icon alt text
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:10:24 -08:00