mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
feat(ui): UI improvements node details screen EE-3468 (#7256)
This commit is contained in:
parent
4997e9c7be
commit
6aa7fdb4f2
5 changed files with 111 additions and 83 deletions
6
app/assets/css/bootstrap-override.css
vendored
6
app/assets/css/bootstrap-override.css
vendored
|
@ -16,6 +16,12 @@
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-center {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
.blue {
|
.blue {
|
||||||
background: var(--bg-dashboard-item) !important;
|
background: var(--bg-dashboard-item) !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -398,3 +398,7 @@ fieldset[disabled] .btn {
|
||||||
border-right: 0px;
|
border-right: 0px;
|
||||||
border-bottom: 3px solid red;
|
border-bottom: 3px solid red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.label-default {
|
||||||
|
line-height: 11px;
|
||||||
|
}
|
||||||
|
|
|
@ -2,13 +2,29 @@
|
||||||
<rd-widget>
|
<rd-widget>
|
||||||
<rd-widget-body classes="no-padding">
|
<rd-widget-body classes="no-padding">
|
||||||
<div class="toolBar">
|
<div class="toolBar">
|
||||||
<div class="toolBarTitle">
|
<div class="toolBarTitle flex">
|
||||||
<i class="fa" ng-class="$ctrl.titleIcon" aria-hidden="true" style="margin-right: 2px"></i>
|
<div class="flex justify-center content-center mr-2 icon-nested-blue vertical-center">
|
||||||
{{ $ctrl.titleText }}
|
<i class="fa icon icon-primary icon-sm" ng-class="$ctrl.titleIcon" aria-hidden="true"></i>
|
||||||
|
</div>
|
||||||
|
<span class="vertical-center">
|
||||||
|
{{ $ctrl.titleText }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="settings vertical-center">
|
||||||
|
<div class="searchBar">
|
||||||
|
<pr-icon icon="'search'" class="vertical-center" feather="true"></pr-icon>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="searchInput ml-1"
|
||||||
|
ng-model="$ctrl.state.textFilter"
|
||||||
|
ng-change="$ctrl.onTextFilterChange()"
|
||||||
|
placeholder="Search for an application..."
|
||||||
|
auto-focus
|
||||||
|
ng-model-options="{ debounce: 300 }"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings">
|
|
||||||
<span class="setting" ng-class="{ 'setting-active': $ctrl.settings.open }" uib-dropdown dropdown-append-to-body auto-close="disabled" is-open="$ctrl.settings.open">
|
<span class="setting" ng-class="{ 'setting-active': $ctrl.settings.open }" uib-dropdown dropdown-append-to-body auto-close="disabled" is-open="$ctrl.settings.open">
|
||||||
<span uib-dropdown-toggle> <i class="fa fa-cog" aria-hidden="true"></i> Table settings </span>
|
<span uib-dropdown-toggle><pr-icon icon="'more-vertical'" feather="true"></pr-icon></span>
|
||||||
<div class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
|
<div class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
|
||||||
<div class="tableMenu">
|
<div class="tableMenu">
|
||||||
<div class="menuHeader"> Table settings </div>
|
<div class="menuHeader"> Table settings </div>
|
||||||
|
@ -28,7 +44,7 @@
|
||||||
<option value="300">5min</option>
|
<option value="300">5min</option>
|
||||||
</select>
|
</select>
|
||||||
<span>
|
<span>
|
||||||
<i id="refreshRateChange" class="fa fa-check green-icon" aria-hidden="true" style="margin-top: 7px; display: none"></i>
|
<pr-icon id="refreshRateChange" style="display: none" icon="'check'" mode="'success'" feather="true"></pr-icon>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,63 +57,63 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="searchBar">
|
|
||||||
<i class="fa fa-search searchIcon" aria-hidden="true"></i>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
class="searchInput"
|
|
||||||
ng-model="$ctrl.state.textFilter"
|
|
||||||
ng-change="$ctrl.onTextFilterChange()"
|
|
||||||
placeholder="Search..."
|
|
||||||
auto-focus
|
|
||||||
ng-model-options="{ debounce: 300 }"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-hover nowrap-cells">
|
<table class="table table-hover nowrap-cells">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<a ng-click="$ctrl.changeOrderBy('Name')">
|
<table-column-header
|
||||||
Name
|
col-title="'Name'"
|
||||||
<i class="fa fa-sort-alpha-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'Name' && !$ctrl.state.reverseOrder"></i>
|
can-sort="true"
|
||||||
<i class="fa fa-sort-alpha-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'Name' && $ctrl.state.reverseOrder"></i>
|
is-sorted="$ctrl.state.orderBy === 'Name'"
|
||||||
</a>
|
is-sorted-desc="$ctrl.state.orderBy === 'Name' && $ctrl.state.reverseOrder"
|
||||||
|
ng-click="$ctrl.changeOrderBy('Name')"
|
||||||
|
></table-column-header>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<a ng-click="$ctrl.changeOrderBy('StackName')">
|
<table-column-header
|
||||||
Stack
|
col-title="'Stack'"
|
||||||
<i class="fa fa-sort-alpha-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'StackName' && !$ctrl.state.reverseOrder"></i>
|
can-sort="true"
|
||||||
<i class="fa fa-sort-alpha-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'StackName' && $ctrl.state.reverseOrder"></i>
|
is-sorted="$ctrl.state.orderBy === 'StackName'"
|
||||||
</a>
|
is-sorted-desc="$ctrl.state.orderBy === 'StackName' && $ctrl.state.reverseOrder"
|
||||||
|
ng-click="$ctrl.changeOrderBy('StackName')"
|
||||||
|
></table-column-header>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<a ng-click="$ctrl.changeOrderBy('ResourcePool')">
|
<table-column-header
|
||||||
Namespace
|
col-title="'Namespace'"
|
||||||
<i class="fa fa-sort-alpha-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'ResourcePool' && !$ctrl.state.reverseOrder"></i>
|
can-sort="true"
|
||||||
<i class="fa fa-sort-alpha-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'ResourcePool' && $ctrl.state.reverseOrder"></i>
|
is-sorted="$ctrl.state.orderBy === 'Namespace'"
|
||||||
</a>
|
is-sorted-desc="$ctrl.state.orderBy === 'Namespace' && $ctrl.state.reverseOrder"
|
||||||
|
ng-click="$ctrl.changeOrderBy('Namespace')"
|
||||||
|
></table-column-header>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<a ng-click="$ctrl.changeOrderBy('Image')">
|
<table-column-header
|
||||||
Image
|
col-title="'Image'"
|
||||||
<i class="fa fa-sort-alpha-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'Image' && !$ctrl.state.reverseOrder"></i>
|
can-sort="true"
|
||||||
<i class="fa fa-sort-alpha-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'Image' && $ctrl.state.reverseOrder"></i>
|
is-sorted="$ctrl.state.orderBy === 'Image'"
|
||||||
</a>
|
is-sorted-desc="$ctrl.state.orderBy === 'Image' && $ctrl.state.reverseOrder"
|
||||||
|
ng-click="$ctrl.changeOrderBy('Image')"
|
||||||
|
></table-column-header>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<a ng-click="$ctrl.changeOrderBy('CPU')">
|
<table-column-header
|
||||||
CPU reservation
|
col-title="'CPU reservation'"
|
||||||
<i class="fa fa-sort-numeric-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'CPU' && !$ctrl.state.reverseOrder"></i>
|
can-sort="true"
|
||||||
<i class="fa fa-sort-numeric-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'CPU' && $ctrl.state.reverseOrder"></i>
|
is-sorted="$ctrl.state.orderBy === 'CPU'"
|
||||||
</a>
|
is-sorted-desc="$ctrl.state.orderBy === 'CPU' && $ctrl.state.reverseOrder"
|
||||||
|
ng-click="$ctrl.changeOrderBy('CPU')"
|
||||||
|
></table-column-header>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<a ng-click="$ctrl.changeOrderBy('Memory')">
|
<table-column-header
|
||||||
Memory reservation
|
col-title="'Memory reservation'"
|
||||||
<i class="fa fa-sort-numeric-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'Memory' && !$ctrl.state.reverseOrder"></i>
|
can-sort="true"
|
||||||
<i class="fa fa-sort-numeric-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'Memory' && $ctrl.state.reverseOrder"></i>
|
is-sorted="$ctrl.state.orderBy === 'Memory'"
|
||||||
</a>
|
is-sorted-desc="$ctrl.state.orderBy === 'Memory' && $ctrl.state.reverseOrder"
|
||||||
|
ng-click="$ctrl.changeOrderBy('Memory')"
|
||||||
|
></table-column-header>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -132,7 +148,7 @@
|
||||||
<div class="footer" ng-if="$ctrl.dataset">
|
<div class="footer" ng-if="$ctrl.dataset">
|
||||||
<div class="infoBar" ng-if="$ctrl.state.selectedItemCount !== 0"> {{ $ctrl.state.selectedItemCount }} item(s) selected </div>
|
<div class="infoBar" ng-if="$ctrl.state.selectedItemCount !== 0"> {{ $ctrl.state.selectedItemCount }} item(s) selected </div>
|
||||||
<div class="paginationControls">
|
<div class="paginationControls">
|
||||||
<form class="form-inline">
|
<form class="form-inline vertical-center">
|
||||||
<span class="limitSelector">
|
<span class="limitSelector">
|
||||||
<span style="margin-right: 5px"> Items per page </span>
|
<span style="margin-right: 5px"> Items per page </span>
|
||||||
<select class="form-control" ng-model="$ctrl.state.paginatedItemLimit" ng-change="$ctrl.changePaginationLimit()" data-cy="component-paginationSelect">
|
<select class="form-control" ng-model="$ctrl.state.paginatedItemLimit" ng-change="$ctrl.changePaginationLimit()" data-cy="component-paginationSelect">
|
||||||
|
|
|
@ -138,12 +138,11 @@
|
||||||
<tr
|
<tr
|
||||||
dir-paginate="item in ($ctrl.state.filteredDataSet = ($ctrl.dataset | filter:$ctrl.state.textFilter | orderBy:$ctrl.state.orderBy:$ctrl.state.reverseOrder | itemsPerPage: $ctrl.state.paginatedItemLimit))"
|
dir-paginate="item in ($ctrl.state.filteredDataSet = ($ctrl.dataset | filter:$ctrl.state.textFilter | orderBy:$ctrl.state.orderBy:$ctrl.state.reverseOrder | itemsPerPage: $ctrl.state.paginatedItemLimit))"
|
||||||
>
|
>
|
||||||
<td>
|
<td ng-if="$ctrl.isAdmin">
|
||||||
<a ui-sref="kubernetes.cluster.node({ name: item.Name })" ng-if="$ctrl.hasK8sClusterNodeR">
|
<a ui-sref="kubernetes.cluster.node({ name: item.Name })">
|
||||||
{{ item.Name }}
|
{{ item.Name }}
|
||||||
</a>
|
</a>
|
||||||
<span ng-if="!$ctrl.hasK8sClusterNodeR">{{ item.Name }}</span>
|
<span class="label label-primary image-tag" style="margin-left: 5px" ng-if="item.Api">api</span>
|
||||||
<span class="label label-primary image-tag" style="margin-left: 5px" ng-if="item.Api" authorization="K8sClusterNodeR">api</span>
|
|
||||||
</td>
|
</td>
|
||||||
<td>{{ item.Role }}</td>
|
<td>{{ item.Role }}</td>
|
||||||
<td
|
<td
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<rd-widget-body classes="no-padding">
|
<rd-widget-body classes="no-padding">
|
||||||
<uib-tabset active="ctrl.state.activeTab" justified="true" type="pills">
|
<uib-tabset active="ctrl.state.activeTab" justified="true" type="pills">
|
||||||
<uib-tab index="0" classes="btn-sm" select="ctrl.selectTab(0)">
|
<uib-tab index="0" classes="btn-sm" select="ctrl.selectTab(0)">
|
||||||
<uib-tab-heading> <i class="fa fa-hdd space-right" aria-hidden="true"></i> Node </uib-tab-heading>
|
<uib-tab-heading class="flex-center gap-1"> <pr-icon icon="'hard-drive'" size="'sm'" feather="true"></pr-icon> Node </uib-tab-heading>
|
||||||
|
|
||||||
<form class="form-horizontal" name="kubernetesNodeUpdateForm" style="padding: 20px" autocomplete="off">
|
<form class="form-horizontal" name="kubernetesNodeUpdateForm" style="padding: 20px" autocomplete="off">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
@ -56,12 +56,12 @@
|
||||||
<option>{{ ctrl.availabilities.PAUSE }}</option>
|
<option>{{ ctrl.availabilities.PAUSE }}</option>
|
||||||
<option>{{ ctrl.availabilities.DRAIN }}</option>
|
<option>{{ ctrl.availabilities.DRAIN }}</option>
|
||||||
</select>
|
</select>
|
||||||
<span class="small text-warning" ng-if="ctrl.state.isDrainOperation && ctrl.formValues.Availability === ctrl.availabilities.DRAIN">
|
<span class="small vertical-center" ng-if="ctrl.state.isDrainOperation && ctrl.formValues.Availability === ctrl.availabilities.DRAIN">
|
||||||
<i class="fa fa-exclamation-circle orange-icon" aria-hidden="true" style="margin-right: 2px"></i>
|
<pr-icon icon="'alert-triangle'" feather="true" mode="'warning'"></pr-icon>
|
||||||
Cannot use this action while another node is currently being drained.
|
Cannot use this action while another node is currently being drained.
|
||||||
</span>
|
</span>
|
||||||
<span class="small text-warning" ng-if="ctrl.state.isContainPortainer && ctrl.formValues.Availability === ctrl.availabilities.DRAIN">
|
<span class="small vertical-center" ng-if="ctrl.state.isContainPortainer && ctrl.formValues.Availability === ctrl.availabilities.DRAIN">
|
||||||
<i class="fa fa-exclamation-circle orange-icon" aria-hidden="true" style="margin-right: 2px"></i>
|
<pr-icon icon="'alert-triangle'" feather="true" mode="'warning'"></pr-icon>
|
||||||
Cannot drain a node where this Portainer instance is running.
|
Cannot drain a node where this Portainer instance is running.
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
@ -89,10 +89,10 @@
|
||||||
<div class="col-sm-12 form-section-title"> Labels </div>
|
<div class="col-sm-12 form-section-title"> Labels </div>
|
||||||
|
|
||||||
<div style="margin-bottom: 10px">
|
<div style="margin-bottom: 10px">
|
||||||
<span class="label label-default interactive" ng-click="ctrl.addLabel()"> <i class="fa fa-plus-circle" aria-hidden="true"></i> add label </span>
|
<span class="label label-default interactive vertical-center" ng-click="ctrl.addLabel()"> <pr-icon icon="'plus'" feather="true"></pr-icon> add label </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-inline" ng-repeat="label in ctrl.formValues.Labels" style="padding: 3px 0 3px 0">
|
<div class="form-inline py-1" ng-repeat="label in ctrl.formValues.Labels">
|
||||||
<div class="input-group col-sm-3 input-group-sm" ng-class="{ striked: label.NeedsDeletion }">
|
<div class="input-group col-sm-3 input-group-sm" ng-class="{ striked: label.NeedsDeletion }">
|
||||||
<span class="input-group-addon">Key</span>
|
<span class="input-group-addon">Key</span>
|
||||||
<input
|
<input
|
||||||
|
@ -118,8 +118,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group col-sm-1 input-group-sm">
|
<div class="input-group col-sm-1 input-group-sm">
|
||||||
<div style="white-space: nowrap">
|
<div style="white-space: nowrap">
|
||||||
<button ng-if="!ctrl.isSystemLabel($index) && !label.NeedsDeletion" class="btn btn-sm btn-danger" type="button" ng-click="ctrl.removeLabel($index)">
|
<button
|
||||||
<i class="fa fa-times" aria-hidden="true"></i>
|
ng-if="!ctrl.isSystemLabel($index) && !label.NeedsDeletion"
|
||||||
|
class="btn btn-sm btn-dangerlight btn-only-icon"
|
||||||
|
type="button"
|
||||||
|
ng-click="ctrl.removeLabel($index)"
|
||||||
|
>
|
||||||
|
<pr-icon icon="'x'" feather="true" mode="'error'" size="'sm'"></pr-icon>
|
||||||
</button>
|
</button>
|
||||||
<button ng-if="!ctrl.isSystemLabel($index) && label.NeedsDeletion" class="btn btn-sm btn-primary" type="button" ng-click="ctrl.restoreLabel($index)">
|
<button ng-if="!ctrl.isSystemLabel($index) && label.NeedsDeletion" class="btn btn-sm btn-primary" type="button" ng-click="ctrl.restoreLabel($index)">
|
||||||
Restore
|
Restore
|
||||||
|
@ -128,17 +133,13 @@
|
||||||
<span class="label label-info image-tag" ng-if="ctrl.isSystemLabel($index)" style="margin-left: 5px">system</span>
|
<span class="label label-info image-tag" ng-if="ctrl.isSystemLabel($index)" style="margin-left: 5px">system</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="small mt-2" ng-show="kubernetesNodeUpdateForm['label_key_' + $index].$invalid || ctrl.state.duplicateLabelKeys[$index] !== undefined">
|
||||||
class="small text-warning"
|
|
||||||
style="margin-top: 5px"
|
|
||||||
ng-show="kubernetesNodeUpdateForm['label_key_' + $index].$invalid || ctrl.state.duplicateLabelKeys[$index] !== undefined"
|
|
||||||
>
|
|
||||||
<ng-messages for="kubernetesNodeUpdateForm['label_key_' + $index].$error">
|
<ng-messages for="kubernetesNodeUpdateForm['label_key_' + $index].$error">
|
||||||
<p ng-message="required"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Label key is required.</p>
|
<p ng-message="required" class="vertical-center"> <pr-icon icon="'alert-triangle'" feather="true" mode="'warning'"></pr-icon> Label key is required. </p>
|
||||||
</ng-messages>
|
</ng-messages>
|
||||||
<p ng-if="ctrl.state.duplicateLabelKeys[$index] !== undefined"
|
<p ng-if="ctrl.state.duplicateLabelKeys[$index] !== undefined" class="vertical-center">
|
||||||
><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> This label key is already defined.</p
|
<pr-icon icon="'alert-triangle'" feather="true" mode="'warning'"></pr-icon> This label key is already defined.
|
||||||
>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -149,7 +150,7 @@
|
||||||
<div class="col-sm-12 form-section-title" style="margin-top: 20px"> Taints </div>
|
<div class="col-sm-12 form-section-title" style="margin-top: 20px"> Taints </div>
|
||||||
|
|
||||||
<div style="margin-bottom: 10px">
|
<div style="margin-bottom: 10px">
|
||||||
<span class="label label-default interactive" ng-click="ctrl.addTaint()"> <i class="fa fa-plus-circle" aria-hidden="true"></i> add taint </span>
|
<span class="label label-default interactive vertical-center" ng-click="ctrl.addTaint()"> <pr-icon icon="'plus'" feather="true"></pr-icon> add taint </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-inline" ng-repeat="taint in ctrl.formValues.Taints" style="padding: 3px 0 3px 0">
|
<div class="form-inline" ng-repeat="taint in ctrl.formValues.Taints" style="padding: 3px 0 3px 0">
|
||||||
|
@ -175,23 +176,23 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group col-sm-1 input-group-sm">
|
<div class="input-group col-sm-1 input-group-sm">
|
||||||
<div>
|
<div>
|
||||||
<button ng-if="!taint.NeedsDeletion" class="btn btn-sm btn-danger" type="button" ng-click="ctrl.removeTaint($index)">
|
<button ng-if="!taint.NeedsDeletion" class="btn btn-sm btn-dangerlight btn-only-icon" type="button" ng-click="ctrl.removeTaint($index)">
|
||||||
<i class="fa fa-times" aria-hidden="true"></i>
|
<pr-icon icon="'x'" feather="true" mode="'error'" size="'sm'"></pr-icon>
|
||||||
</button>
|
</button>
|
||||||
<button ng-if="taint.NeedsDeletion" class="btn btn-sm btn-primary" type="button" ng-click="ctrl.restoreTaint($index)"> Restore </button>
|
<button ng-if="taint.NeedsDeletion" class="btn btn-sm btn-primary" type="button" ng-click="ctrl.restoreTaint($index)"> Restore </button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="small text-warning"
|
class="small"
|
||||||
style="margin-top: 5px"
|
style="margin-top: 5px"
|
||||||
ng-show="kubernetesNodeUpdateForm['taint_key_' + $index].$invalid || ctrl.state.duplicateTaintKeys[$index] !== undefined"
|
ng-show="kubernetesNodeUpdateForm['taint_key_' + $index].$invalid || ctrl.state.duplicateTaintKeys[$index] !== undefined"
|
||||||
>
|
>
|
||||||
<ng-messages for="kubernetesNodeUpdateForm['taint_key_' + $index].$error">
|
<ng-messages for="kubernetesNodeUpdateForm['taint_key_' + $index].$error">
|
||||||
<p ng-message="required"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Taint key is required.</p>
|
<p ng-message="required" class="vertical-center"> <pr-icon icon="'alert-triangle'" feather="true" mode="'warning'"></pr-icon> Taint key is required. </p>
|
||||||
</ng-messages>
|
</ng-messages>
|
||||||
<p ng-if="ctrl.state.duplicateTaintKeys[$index] !== undefined"
|
<p ng-if="ctrl.state.duplicateTaintKeys[$index] !== undefined">
|
||||||
><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> This taint key is already defined.</p
|
<pr-icon icon="'alert-triangle'" feather="true" mode="'warning'"></pr-icon> This taint key is already defined.
|
||||||
>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -222,9 +223,9 @@
|
||||||
</uib-tab>
|
</uib-tab>
|
||||||
<uib-tab index="1" classes="btn-sm" select="ctrl.selectTab(1)">
|
<uib-tab index="1" classes="btn-sm" select="ctrl.selectTab(1)">
|
||||||
<uib-tab-heading>
|
<uib-tab-heading>
|
||||||
<i class="fa fa-history space-right" aria-hidden="true"></i> Events
|
<div class="flex-center gap-1"> <pr-icon icon="'rotate-ccw'" size="'sm'" feather="true"></pr-icon> Events </div>
|
||||||
<div ng-if="ctrl.hasEventWarnings()">
|
<div class="flex-center gap-1" ng-if="ctrl.hasEventWarnings()">
|
||||||
<i class="fa fa-exclamation-circle orange-icon" aria-hidden="true" style="margin-right: 2px"></i>
|
<pr-icon icon="'alert-circle'" mode="'warning-alt'" size="'sm'" feather="true"></pr-icon>
|
||||||
{{ ctrl.state.eventWarningCount }} warning(s)
|
{{ ctrl.state.eventWarningCount }} warning(s)
|
||||||
</div>
|
</div>
|
||||||
</uib-tab-heading>
|
</uib-tab-heading>
|
||||||
|
@ -241,7 +242,9 @@
|
||||||
</kubernetes-events-datatable>
|
</kubernetes-events-datatable>
|
||||||
</uib-tab>
|
</uib-tab>
|
||||||
<uib-tab index="2" ng-if="ctrl.node.Yaml" select="ctrl.showEditor()" classes="btn-sm">
|
<uib-tab index="2" ng-if="ctrl.node.Yaml" select="ctrl.showEditor()" classes="btn-sm">
|
||||||
<uib-tab-heading> <i class="fa fa-code space-right" aria-hidden="true"></i> YAML </uib-tab-heading>
|
<uib-tab-heading class="vertical-center">
|
||||||
|
<div class="flex-center gap-1"> <pr-icon icon="'code'" size="'sm'" feather="true"></pr-icon> YAML </div>
|
||||||
|
</uib-tab-heading>
|
||||||
<div style="padding-right: 25px" ng-if="ctrl.state.showEditorTab">
|
<div style="padding-right: 25px" ng-if="ctrl.state.showEditorTab">
|
||||||
<kubernetes-yaml-inspector key="node-yaml" data="ctrl.node.Yaml"> </kubernetes-yaml-inspector>
|
<kubernetes-yaml-inspector key="node-yaml" data="ctrl.node.Yaml"> </kubernetes-yaml-inspector>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue