mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-03-04 14:05:56 +01:00
if disableClusterSelection is set, display info in cluster filter
- instead of undocumented unresponsive cluster name select
This commit is contained in:
parent
38569f55c7
commit
42135fd26c
@ -43,26 +43,31 @@
|
|||||||
<ModalBody>
|
<ModalBody>
|
||||||
{#if $initialized}
|
{#if $initialized}
|
||||||
<h4>Cluster</h4>
|
<h4>Cluster</h4>
|
||||||
<ListGroup>
|
{#if disableClusterSelection}
|
||||||
<ListGroupItem
|
<Button color="info" class="w-100 mb-2" disabled><b>Info: Cluster Selection Disabled in This View</b></Button>
|
||||||
disabled={disableClusterSelection}
|
<Button outline color="primary" class="w-100 mb-2" disabled><b>Selected Cluster: {cluster}</b></Button>
|
||||||
active={pendingCluster == null}
|
{:else}
|
||||||
on:click={() => ((pendingCluster = null), (pendingPartition = null))}
|
<ListGroup>
|
||||||
>
|
|
||||||
Any Cluster
|
|
||||||
</ListGroupItem>
|
|
||||||
{#each clusters as cluster}
|
|
||||||
<ListGroupItem
|
<ListGroupItem
|
||||||
disabled={disableClusterSelection}
|
disabled={disableClusterSelection}
|
||||||
active={pendingCluster == cluster.name}
|
active={pendingCluster == null}
|
||||||
on:click={() => (
|
on:click={() => ((pendingCluster = null), (pendingPartition = null))}
|
||||||
(pendingCluster = cluster.name), (pendingPartition = null)
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
{cluster.name}
|
Any Cluster
|
||||||
</ListGroupItem>
|
</ListGroupItem>
|
||||||
{/each}
|
{#each clusters as cluster}
|
||||||
</ListGroup>
|
<ListGroupItem
|
||||||
|
disabled={disableClusterSelection}
|
||||||
|
active={pendingCluster == cluster.name}
|
||||||
|
on:click={() => (
|
||||||
|
(pendingCluster = cluster.name), (pendingPartition = null)
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{cluster.name}
|
||||||
|
</ListGroupItem>
|
||||||
|
{/each}
|
||||||
|
</ListGroup>
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{#if $initialized && pendingCluster != null}
|
{#if $initialized && pendingCluster != null}
|
||||||
<br />
|
<br />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user