mirror of https://github.com/rancher/ui.git
Bugs (#963)
This commit is contained in:
parent
86f02c80d3
commit
38011bc1d9
|
|
@ -76,7 +76,7 @@ export default Ember.Component.extend(NewOrEdit, {
|
|||
// Ports
|
||||
// ----------------------------------
|
||||
updatePorts() {
|
||||
let rules = this.get('service.lbConfig.portRules');
|
||||
let rules = this.get('service.lbConfig.portRules')||[];
|
||||
let publish = [];
|
||||
let expose = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Controller.extend({
|
||||
actions: {
|
||||
openDashboard() {
|
||||
window.open(this.get('model.dashboardUrl'),'_blank');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
<h4>{{t 'k8sTab.dashboard.dashboard.header'}}</h4>
|
||||
<p>{{t 'k8sTab.dashboard.dashboard.content'}}</p>
|
||||
{{#if model.dashboardUrl}}
|
||||
<a href="{{model.dashboardUrl}}" target="_blank" rel="noreferrer nofollow" class="btn btn-primary">{{t 'k8sTab.dashboard.dashboard.button'}}</a>
|
||||
<a {{action "openDashboard"}} class="btn btn-primary">{{t 'k8sTab.dashboard.dashboard.button'}}</a>
|
||||
{{else}}
|
||||
<button class="btn btn-primary btn-disabled">{{t 'k8sTab.dashboard.dashboard.button'}}</button>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ export default Ember.Mixin.create({
|
|||
return [];
|
||||
}.property(),
|
||||
|
||||
translatedAvaileableActions: Ember.computed(function() {
|
||||
translatedAvailableActions: Ember.computed('availableActions','intl._locale', function() {
|
||||
// use this if you need to pass translated actions to addons
|
||||
var availableActions = this.get('availableActions');
|
||||
if (availableActions) {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
"forever-agent": "^0.6.1",
|
||||
"glob": "^5.0.3",
|
||||
"http-proxy": "^1.11.1",
|
||||
"lacsso": "0.0.41",
|
||||
"lacsso": "0.0.42",
|
||||
"liquid-fire": "0.26.4",
|
||||
"loader.js": "^4.0.10",
|
||||
"shell-quote": "^1.4.3",
|
||||
|
|
|
|||
Loading…
Reference in New Issue