mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-25 14:55:06 +02:00 
			
		
		
		
	fix: remove unnecessary bind, correct page item minimum
This commit is contained in:
		| @@ -317,7 +317,7 @@ | ||||
|  | ||||
| {#if usePaging} | ||||
|   <Pagination | ||||
|     bind:page | ||||
|     {page} | ||||
|     {itemsPerPage} | ||||
|     itemText="Jobs" | ||||
|     totalItems={matchedListJobs} | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| <script> | ||||
|     /* Svelte 5 Props */ | ||||
|     let { | ||||
|         page = $bindable(1), | ||||
|         page = 1, | ||||
|         itemsPerPage = 10, | ||||
|         totalItems = 0, | ||||
|         itemText = "items", | ||||
| @@ -63,7 +63,7 @@ | ||||
|             <span class="focus"></span> | ||||
|         </div> | ||||
|         <span class="cc-pagination-text"> | ||||
|             { (page - 1) * itemsPerPage } - { Math.min((page - 1) * itemsPerPage + itemsPerPage, totalItems) } of { totalItems } { itemText } | ||||
|             { ((page - 1) * itemsPerPage) + 1 } - { Math.min((page - 1) * itemsPerPage + itemsPerPage, totalItems) } of { totalItems } { itemText } | ||||
|         </span> | ||||
|     </div> | ||||
|     <div class="cc-pagination-right"> | ||||
|   | ||||
| @@ -262,7 +262,7 @@ | ||||
|  | ||||
| {#if usePaging} | ||||
|   <Pagination | ||||
|     bind:page | ||||
|     {page} | ||||
|     {itemsPerPage} | ||||
|     itemText="Nodes" | ||||
|     totalItems={matchedNodes} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user