This commit is contained in:
Vincent Fiduccia 2016-12-30 15:41:53 -07:00 committed by GitHub
parent 86f02c80d3
commit 38011bc1d9
5 changed files with 13 additions and 4 deletions

View File

@ -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 = [];

View File

@ -0,0 +1,9 @@
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
openDashboard() {
window.open(this.get('model.dashboardUrl'),'_blank');
}
}
});

View File

@ -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}}

View File

@ -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) {

View File

@ -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",