mirror of https://github.com/rancher/ui.git
Bugs
This commit is contained in:
parent
f7d1d2d06a
commit
c3abb3fd15
|
|
@ -27,10 +27,8 @@
|
||||||
{{action-menu model=model showPrimary=showPrimaryActions}}
|
{{action-menu model=model showPrimary=showPrimaryActions}}
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
{{!-- <tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
|
||||||
<tr class="sub-row"> --}}
|
{{#if model.showTransitioningMessage}}
|
||||||
{{!--
|
{{error-sub-row fullColspan=fullColspan model=model}}
|
||||||
</tr> --}}
|
{{/if}}
|
||||||
{{partial "error-sub-row"}}
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{{#if showLabelRow}}
|
{{#if showLabelRow}}
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
|
||||||
<tr class="sub-row no-top">
|
<tr class="sub-row no-top">
|
||||||
<td colspan="{{sub fullColspan 3}}">
|
<td colspan="{{sub fullColspan 3}}">
|
||||||
{{#each model.displayUserLabelStrings as |label|}}
|
{{#each model.displayUserLabelStrings as |label|}}
|
||||||
|
|
@ -48,10 +47,11 @@
|
||||||
</tr>
|
</tr>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{partial "error-sub-row"}}
|
{{#if model.showTransitioningMessage}}
|
||||||
|
{{error-sub-row fullColspan=fullColspan model=model}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if canExpand}}
|
{{#if canExpand}}
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
|
||||||
<tr class="sub-row {{unless expanded 'hide'}}">
|
<tr class="sub-row {{unless expanded 'hide'}}">
|
||||||
<td colspan="2">{{! checkbox and expand}}</td>
|
<td colspan="2">{{! checkbox and expand}}</td>
|
||||||
<td colspan="{{sub fullColspan 3}}">
|
<td colspan="{{sub fullColspan 3}}">
|
||||||
|
|
@ -71,7 +71,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{{#if expanded}}
|
{{#if expanded}}
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
|
||||||
<tr class="separator-row">
|
<tr class="separator-row">
|
||||||
<td colspan="{{fullColspan}}"></td>
|
<td colspan="{{fullColspan}}"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import Ember from 'ember';
|
||||||
|
|
||||||
|
export default Ember.Component.extend({
|
||||||
|
model: null,
|
||||||
|
fullColspan: null,
|
||||||
|
leftColspan: 1,
|
||||||
|
rightColspan: 1,
|
||||||
|
|
||||||
|
tagName: '',
|
||||||
|
|
||||||
|
mainColspan: Ember.computed('fullColspan', function() {
|
||||||
|
return (this.get('fullColspan')||2) - this.get('leftColspan') - this.get('rightColspan');
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
<tr class="sub-row no-top">
|
||||||
|
{{#if leftColspan}}
|
||||||
|
<td colspan="{{leftColspan}}"></td>
|
||||||
|
{{/if}}
|
||||||
|
<td class="pb-5" colspan="{{mainColspan}}">
|
||||||
|
<small class="{{model.stateColor}}" >{{model.transitioningMessage}}</small>
|
||||||
|
</td>
|
||||||
|
{{#if rightColspan}}
|
||||||
|
<td colspan="{{rightColspan}}"></td>
|
||||||
|
{{/if}}
|
||||||
|
</tr>
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<tr class="main-row">
|
<tr class="main-row">
|
||||||
<td class="row-check" rowspan={{if showLabelRow 2 1}}>
|
<td class="row-check">
|
||||||
{{check-box nodeId=model.id}}
|
{{check-box nodeId=model.id}}
|
||||||
</td>
|
</td>
|
||||||
<td rowspan={{if showLabelRow 2 1}}>
|
<td>
|
||||||
<i role="button" {{action "toggle"}} class="icon icon-play eased text-small text-muted {{if expanded 'icon-rotate-90'}}"></i>
|
<i role="button" {{action "toggle"}} class="icon icon-play eased text-small text-muted {{if expanded 'icon-rotate-90'}}"></i>
|
||||||
</td>
|
</td>
|
||||||
<td data-title="{{dt.state}}" class="state">
|
<td data-title="{{dt.state}}" class="state">
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
</td>
|
</td>
|
||||||
<td data-title="{{dt.name}}" class="clip">
|
<td data-title="{{dt.name}}" class="clip">
|
||||||
<a href="{{href-to "host" model.id}}">{{model.displayName}}</a>
|
<a href="{{href-to "host" model.id}}">{{model.displayName}}</a>
|
||||||
{{!-- labels--}}
|
|
||||||
{{#if showLabelRow}}
|
{{#if showLabelRow}}
|
||||||
{{#each model.displayUserLabelStrings as |label|}}
|
{{#each model.displayUserLabelStrings as |label|}}
|
||||||
<span class="tag-xs bg-info">{{label}}</span>
|
<span class="tag-xs bg-info">{{label}}</span>
|
||||||
|
|
@ -30,7 +29,27 @@
|
||||||
{{model.memoryBlurb}}
|
{{model.memoryBlurb}}
|
||||||
</td>
|
</td>
|
||||||
<td data-title="{{dt.docker}}">
|
<td data-title="{{dt.docker}}">
|
||||||
{{model.dockerEngineVersion}}
|
{{#if (eq model.supportState 'unsupported')}}
|
||||||
|
<span class="text-warning">
|
||||||
|
{{model.dockerEngineVersion}}
|
||||||
|
{{#tooltip-element type="tooltip-basic" model=(t 'hostPod.supportState.unsupported') tooltipTemplate='tooltip-static' aria-describedby="tooltip-base" tooltipFor="docker-version"}}
|
||||||
|
<a href="{{settings.docsBase}}/hosts/#supported-docker-versions" target="_blank" rel="nofollow noreferrer">
|
||||||
|
<i class="icon icon-alert text-warning"></i>
|
||||||
|
</a>
|
||||||
|
{{/tooltip-element}}
|
||||||
|
</span>
|
||||||
|
{{else if (eq model.supportState 'untested')}}
|
||||||
|
<span class="text-warning">
|
||||||
|
{{model.dockerEngineVersion}}
|
||||||
|
{{#tooltip-element type="tooltip-basic" model=(t 'hostPod.supportState.unsupported') tooltipTemplate='tooltip-static' aria-describedby="tooltip-base" tooltipFor="docker-version"}}
|
||||||
|
<a href="{{settings.docsBase}}/hosts/#supported-docker-versions" target="_blank" rel="nofollow noreferrer">
|
||||||
|
<i class="icon icon-alert text-warning"></i>
|
||||||
|
</a>
|
||||||
|
{{/tooltip-element}}
|
||||||
|
</span>
|
||||||
|
{{else}}
|
||||||
|
{{model.dockerEngineVersion}}
|
||||||
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td data-title="{{dt.instanceState}}">
|
<td data-title="{{dt.instanceState}}">
|
||||||
|
|
@ -41,7 +60,7 @@
|
||||||
values=model.instanceStates.byColor
|
values=model.instanceStates.byColor
|
||||||
tooltipValues=model.instanceStates.byName
|
tooltipValues=model.instanceStates.byName
|
||||||
}}
|
}}
|
||||||
<!--count-->
|
|
||||||
<p class="text-muted m-0">
|
<p class="text-muted m-0">
|
||||||
<small>
|
<small>
|
||||||
{{#if subMatches}}
|
{{#if subMatches}}
|
||||||
|
|
@ -57,44 +76,31 @@
|
||||||
{{action-menu model=model showPrimary=false}}
|
{{action-menu model=model showPrimary=false}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="sub-row"></tr>
|
|
||||||
{{!-- {{#if showLabelRow}}
|
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
|
||||||
<tr class="sub-row no-top">
|
|
||||||
<td colspan="{{sub fullColspan 3}}" style="height: 30px; vertical-align:top;">
|
|
||||||
{{#each model.displayUserLabelStrings as |label|}}
|
|
||||||
<span class="tag-xs bg-info">{{label}}</span>
|
|
||||||
{{/each}}
|
|
||||||
{{#each model.requireAnyLabelStrings as |label|}}
|
|
||||||
<span class="tag-xs bg-warning">{{label}}</span>
|
|
||||||
{{/each}}
|
|
||||||
</td>
|
|
||||||
<td>{{! actions}}</td>
|
|
||||||
</tr>
|
|
||||||
{{/if}} --}}
|
|
||||||
|
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
{{#if model.showTransitioningMessage}}
|
||||||
<tr class="sub-row {{unless expanded 'hide'}}">
|
{{error-sub-row fullColspan=fullColspan model=model}}
|
||||||
<td colspan="2">{{! checkbox and expand}}</td>
|
{{/if}}
|
||||||
<td colspan="{{sub fullColspan 3}}">
|
|
||||||
{{#liquid-if expanded}}
|
|
||||||
{{container-table
|
|
||||||
body=model.instances
|
|
||||||
stickyHeader=false
|
|
||||||
bulkActions=false
|
|
||||||
search=false
|
|
||||||
searchText=searchText
|
|
||||||
subRow=true
|
|
||||||
showHost=false
|
|
||||||
}}
|
|
||||||
{{/liquid-if}}
|
|
||||||
</td>
|
|
||||||
<td>{{! actions}}</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
{{#if expanded}}
|
<tr class="sub-row {{unless expanded 'hide'}}">
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
<td colspan="2">{{! checkbox and expand}}</td>
|
||||||
<tr class="separator-row">
|
<td colspan="{{sub fullColspan 3}}">
|
||||||
<td colspan="{{fullColspan}}"></td>
|
{{#liquid-if expanded}}
|
||||||
</tr>
|
{{container-table
|
||||||
{{/if}}
|
body=model.instances
|
||||||
|
stickyHeader=false
|
||||||
|
bulkActions=false
|
||||||
|
search=false
|
||||||
|
searchText=searchText
|
||||||
|
subRow=true
|
||||||
|
showHost=false
|
||||||
|
}}
|
||||||
|
{{/liquid-if}}
|
||||||
|
</td>
|
||||||
|
<td>{{! actions}}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{{#if expanded}}
|
||||||
|
<tr class="separator-row">
|
||||||
|
<td colspan="{{fullColspan}}"></td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{{#if showLabelRow}}
|
{{#if showLabelRow}}
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
|
||||||
<tr class="sub-row no-top">
|
<tr class="sub-row no-top">
|
||||||
<td colspan="{{sub fullColspan 3}}">
|
<td colspan="{{sub fullColspan 3}}">
|
||||||
{{#each model.displayUserLabelStrings as |label|}}
|
{{#each model.displayUserLabelStrings as |label|}}
|
||||||
|
|
@ -67,10 +66,11 @@
|
||||||
</tr>
|
</tr>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{partial "error-sub-row"}}
|
{{#if model.showTransitioningMessage}}
|
||||||
|
{{error-sub-row fullColspan=fullColspan model=model}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if canExpand}}
|
{{#if canExpand}}
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
|
||||||
<tr class="sub-row {{unless expanded 'hide'}}">
|
<tr class="sub-row {{unless expanded 'hide'}}">
|
||||||
<td>{{! checkbox and expand}}</td>
|
<td>{{! checkbox and expand}}</td>
|
||||||
<td colspan="{{sub fullColspan 2}}">
|
<td colspan="{{sub fullColspan 2}}">
|
||||||
|
|
@ -90,7 +90,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{{#if expanded}}
|
{{#if expanded}}
|
||||||
<tr class="sub-row hide">{{! make the alternating color match }}</tr>
|
|
||||||
<tr class="separator-row">
|
<tr class="separator-row">
|
||||||
<td colspan="{{fullColspan}}"></td>
|
<td colspan="{{fullColspan}}"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
import C from 'ui/utils/constants';
|
import C from 'ui/utils/constants';
|
||||||
export function parseHostIcon(params/*, hash*/) {
|
export function parseHostIcon(params/*, hash*/) {
|
||||||
return C.MACHINE_DRIVER_IMAGES[params[0].toUpperCase()] || 'other';
|
return C.MACHINE_DRIVER_IMAGES[(params[0]||'other').toUpperCase()] || 'other';
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Ember.Helper.helper(parseHostIcon);
|
export default Ember.Helper.helper(parseHostIcon);
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ export default Ember.Controller.extend({
|
||||||
name: 'docker',
|
name: 'docker',
|
||||||
sort: ['dockerEngineVersion','displayName'],
|
sort: ['dockerEngineVersion','displayName'],
|
||||||
searchField: 'dockerEngineVersion',
|
searchField: 'dockerEngineVersion',
|
||||||
width: 90,
|
width: 110,
|
||||||
translationKey: 'hostsPage.index.table.docker',
|
translationKey: 'hostsPage.index.table.docker',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,7 @@ export default Ember.Mixin.create(NewOrEdit, ManageLabels, {
|
||||||
});
|
});
|
||||||
|
|
||||||
// The hostTemplate was the first one, wait for it then add hosts
|
// The hostTemplate was the first one, wait for it then add hosts
|
||||||
this.get('model').waitForState('active').then(() => {
|
return this.get('model').waitForState('active').then(() => {
|
||||||
return addHosts();
|
return addHosts();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ export default Ember.Route.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
afterModel: function(model) {
|
afterModel: function(model) {
|
||||||
model.set('service.secondaryLaunchConfigs', this.setUiId(model.get('service.secondaryLaunchConfigs')));
|
model.set('service.secondaryLaunchConfigs', this.setUiId(model.get('service.secondaryLaunchConfigs')||[]));
|
||||||
},
|
},
|
||||||
|
|
||||||
setUiId: function(configs) {
|
setUiId: function(configs) {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ $table-bg-hover : lighten($info, 15)!default;
|
||||||
$table-bg-active : $table-bg-hover!default;
|
$table-bg-active : $table-bg-hover!default;
|
||||||
$table-bg-selected : lighten($info, 30)!default;
|
$table-bg-selected : lighten($info, 30)!default;
|
||||||
$table-border-color : lighten($mid-grey, 30)!default;
|
$table-border-color : lighten($mid-grey, 30)!default;
|
||||||
$table-body-separation : 50px;
|
|
||||||
$table-body-separation : 25px;
|
$table-body-separation : 25px;
|
||||||
$group-row-height : 50px;
|
$group-row-height : 50px;
|
||||||
|
|
||||||
|
|
@ -21,6 +20,22 @@ $group-row-height : 50px;
|
||||||
border-bottom: $table-border-color solid 2px;
|
border-bottom: $table-border-color solid 2px;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
|
||||||
|
// General padding
|
||||||
|
> THEAD > TR > TH,
|
||||||
|
> TBODY > TR > TD {
|
||||||
|
padding: 0;
|
||||||
|
transition: ease-in-out all 200ms;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> TBODY > TR.main-row > TD {
|
||||||
|
height: $group-row-height;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
> TBODY {
|
> TBODY {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
||||||
|
|
@ -95,21 +110,6 @@ TABLE {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
// General padding
|
|
||||||
> THEAD > TR > TH,
|
|
||||||
> TBODY > TR > TD {
|
|
||||||
padding: 0;
|
|
||||||
height: $group-row-height;
|
|
||||||
transition: ease-in-out all 200ms;
|
|
||||||
|
|
||||||
&:last-child {
|
|
||||||
height: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
> TBODY > TR > TD {
|
|
||||||
height: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.cell-padding {
|
&.cell-padding {
|
||||||
border-spacing: 10px 0;
|
border-spacing: 10px 0;
|
||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{{#if model.showTransitioningMessage}}
|
|
||||||
<tr class="sub-row no-top">
|
|
||||||
<td class="pl-40 pb-5" style="height: 20px;" colspan="{{fullColspan}}">
|
|
||||||
<span class="{{model.stateColor}}"><small>{{model.transitioningMessage}}</small></span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{{/if}}
|
|
||||||
|
|
@ -313,55 +313,6 @@ export let PacketPlans = [
|
||||||
"hour": 1.25
|
"hour": 1.25
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "3bc8a214-b807-4058-ad4a-6925f2411155",
|
|
||||||
"slug": "baremetal_2a",
|
|
||||||
"name": "Type 2A",
|
|
||||||
"description": "Our Type 2A configuration is a 96-core dual socket ARM 64 beast based on Cavium ThunderX chips",
|
|
||||||
"line": "baremetal",
|
|
||||||
"specs": {
|
|
||||||
"cpus": [
|
|
||||||
{
|
|
||||||
"count": 2,
|
|
||||||
"type": "Cavium ThunderX CN8890 @2GHz"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"memory": {
|
|
||||||
"total": "128GB"
|
|
||||||
},
|
|
||||||
"drives": [
|
|
||||||
{
|
|
||||||
"count": 1,
|
|
||||||
"size": "340GB",
|
|
||||||
"type": "SSD"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"nics": [
|
|
||||||
{
|
|
||||||
"count": 2,
|
|
||||||
"type": "10Gbps"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"features": {}
|
|
||||||
},
|
|
||||||
"available_in": [
|
|
||||||
{
|
|
||||||
"href": "/facilities/8ea03255-89f9-4e62-9d3f-8817db82ceed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/facilities/8e6470b3-b75e-47d1-bb93-45b225750975"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/facilities/2b70eb8f-fa18-47c0-aba7-222a842362fd"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/facilities/e1e9c52e-a0bc-4117-b996-0fc94843ea09"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"pricing": {
|
|
||||||
"hour": 0.5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "741f3afb-bb2f-4694-93a0-fcbad7cd5e78",
|
"id": "741f3afb-bb2f-4694-93a0-fcbad7cd5e78",
|
||||||
"slug": "baremetal_3",
|
"slug": "baremetal_3",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue