mirror of https://github.com/rancher/ui.git
commit
5bd75a493e
|
|
@ -286,7 +286,7 @@ TABLE {
|
|||
}
|
||||
|
||||
> TR.suffix {
|
||||
background-color: $table-bg-accent;
|
||||
display: table-row;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,12 @@ const headersAll = [
|
|||
translationKey: 'generic.name',
|
||||
scope: 'embedded',
|
||||
},
|
||||
{
|
||||
name: 'all',
|
||||
sort: false,
|
||||
searchField: null,
|
||||
translationKey: 'clustersPage.addPage.rke.new.headers.labels.all',
|
||||
},
|
||||
{
|
||||
name: 'etcd',
|
||||
sort: false,
|
||||
|
|
@ -49,12 +55,6 @@ const headersAll = [
|
|||
translationKey: 'clustersPage.addPage.rke.new.headers.labels.worker',
|
||||
scope: 'embedded',
|
||||
},
|
||||
{
|
||||
name: 'all',
|
||||
sort: false,
|
||||
searchField: null,
|
||||
translationKey: 'clustersPage.addPage.rke.new.headers.labels.all',
|
||||
},
|
||||
];
|
||||
|
||||
const workerHeaders = headersAll.filter((x) => x.scope === 'embedded');
|
||||
|
|
|
|||
|
|
@ -51,7 +51,11 @@
|
|||
<td data-title="{{dt.name}}">
|
||||
{{host.displayName}}
|
||||
</td>
|
||||
|
||||
{{#if (eq scope "dedicated")}}
|
||||
<td data-title="{{dt.all}}">
|
||||
{{input type="checkbox" checked=(array-includes host.role 'worker' 'controlplane' 'etcd') change=(action 'selectAllRoles' host)}}
|
||||
</td>
|
||||
{{/if}}
|
||||
{{#if (eq scope "dedicated")}}
|
||||
<td data-title="{{dt.etcd}}">
|
||||
{{!-- disabled=(not-eq host.state "active") --}}
|
||||
|
|
@ -66,19 +70,15 @@
|
|||
{{!-- disabled=(not-eq host.state "active") --}}
|
||||
{{input type="checkbox" checked=(array-includes host.role 'worker') change=(action 'addRole' host 'worker')}}
|
||||
</td>
|
||||
{{#if (eq scope "dedicated")}}
|
||||
<td data-title="{{dt.all}}">
|
||||
{{input type="checkbox" checked=(array-includes host.role 'worker' 'controlplane' 'etcd') change=(action 'selectAllRoles' host)}}
|
||||
</td>
|
||||
{{/if}}
|
||||
|
||||
</tr>
|
||||
{{else if (eq kind "nomatch")}}
|
||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'nodesPage.table.noMatch'}}</td></tr>
|
||||
{{else if (eq kind "norows")}}
|
||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20" style="height:200px;">{{t 'nodesPage.table.noData'}}</td></tr>
|
||||
{{else if (eq kind "suffix")}}
|
||||
<tr class="suffix">
|
||||
<td colspan="2" class="text-right pr-20">{{t 'clustersPage.addPage.rke.minimums.label'}}:</td>
|
||||
<tr class="banner bg-info suffix">
|
||||
<td colspan="3" class="text-right pr-20">{{t 'clustersPage.addPage.rke.minimums.label'}}:</td>
|
||||
{{#if (eq scope "dedicated")}}
|
||||
<td class="{{if etcdSafe "text-success" "text-error"}}">
|
||||
<i class="icon {{if etcdSafe "icon-success" "icon-x-circle"}}"></i>
|
||||
|
|
|
|||
Loading…
Reference in New Issue