mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-31 07:55:06 +01:00 
			
		
		
		
	Finish prototype implementation of nodelist view
This commit is contained in:
		| @@ -12,7 +12,7 @@ | ||||
|  --> | ||||
|  | ||||
| <script> | ||||
|   import { getContext } from "svelte"; | ||||
|   import { getContext, createEventDispatcher } from "svelte"; | ||||
|   import { | ||||
|     Modal, | ||||
|     ModalBody, | ||||
| @@ -33,6 +33,7 @@ | ||||
|  | ||||
|   const onInit = getContext("on-init") | ||||
|   const globalMetrics = getContext("globalMetrics") | ||||
|   const dispatch = createEventDispatcher(); | ||||
|  | ||||
|   let newMetricsOrder = []; | ||||
|   let unorderedMetrics = [...metrics]; | ||||
| @@ -128,6 +129,8 @@ | ||||
|         throw res.error; | ||||
|       } | ||||
|     }); | ||||
|  | ||||
|     dispatch('update-metrics', metrics); | ||||
|   } | ||||
| </script> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user