-
{{catalogItem.name}}
+
+ {{catalogItem.name}}
+ {{#if showCatalogDropdown}}
+ in {{catalogItem.catalogId}}
+ {{/if}}
+
diff --git a/app/applications-tab/catalog/route.js b/app/applications-tab/catalog/route.js
index 81c7bfa5d..8110bc5a5 100644
--- a/app/applications-tab/catalog/route.js
+++ b/app/applications-tab/catalog/route.js
@@ -17,7 +17,7 @@ export default Ember.Route.extend({
category: {
refreshModel: true
},
- catalogid: {
+ catalogId: {
refreshModel: true
}
},
@@ -40,13 +40,13 @@ export default Ember.Route.extend({
var cache = this.get('cache');
// If the catalogIds dont match we need to go get the other catalog from the store since we do not cache all catalogs
- if ( cache && cache.catalogId === params.catalogid)
+ if ( cache && cache.catalogId === params.catalogId)
{
return filter(cache, params.category, this.get('catalogIds'));
}
- if (params.catalogid) {
- this.controllerFor('applications-tab.catalog.index').set('selectedCatalog', params.catalogid);
+ if (params.catalogId) {
+ this.controllerFor('applications-tab.catalog.index').set('selectedCatalog', params.catalogId);
}
var version = this.get('settings.rancherVersion');
@@ -54,8 +54,8 @@ export default Ember.Route.extend({
'category_ne': 'system',
};
- if (params.catalogid !== 'all') {
- qp['catalogId'] = params.catalogid;
+ if (params.catalogId !== 'all') {
+ qp['catalogId'] = params.catalogId;
}
if ( version )
@@ -66,7 +66,7 @@ export default Ember.Route.extend({
var url = addQueryParams(this.get('app.catalogEndpoint')+'/templates', qp);
return this.get('store').request({url: url}).then((response) => {
- response.catalogId = params.catalogid;
+ response.catalogId = params.catalogId;
this.set('cache', response);
return filter(response, params.category, this.get('catalogIds'));
});
@@ -77,7 +77,6 @@ export default Ember.Route.extend({
var out = Ember.Object.create({
categories: uniqKeys(data, 'category'),
catalogIds: catalogIds,
-
});
if ( category === 'all' ) {
@@ -89,4 +88,12 @@ export default Ember.Route.extend({
return out;
}
},
+
+ resetController: function (controller, isExiting/*, transition*/) {
+ if (isExiting)
+ {
+ controller.set('category', 'all');
+ controller.set('catalogId', 'all');
+ }
+ }
});
diff --git a/app/certificates/detail/controller.js b/app/certificates/detail/controller.js
index f5985fd85..b9d8f4e83 100644
--- a/app/certificates/detail/controller.js
+++ b/app/certificates/detail/controller.js
@@ -3,7 +3,7 @@ import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
changeCertificate(cert) {
- this.get('application').transitionToRoute('certificate.detail', cert.get('id'));
+ this.transitionToRoute('certificates.detail', cert.get('id'));
},
},
});
diff --git a/app/certificates/detail/template.hbs b/app/certificates/detail/template.hbs
index 5bf10ff05..b50368324 100644
--- a/app/certificates/detail/template.hbs
+++ b/app/certificates/detail/template.hbs
@@ -1,19 +1,23 @@
-
- {{partial "description"}}
+{{#if model.certificate.description}}
+
+
+
Description
+
{{model.certificate.description}}
+
+
+{{/if}}
+
diff --git a/app/components/catalog-settings/template.hbs b/app/components/catalog-settings/template.hbs
index 5415f6dca..b3c03fcd9 100644
--- a/app/components/catalog-settings/template.hbs
+++ b/app/components/catalog-settings/template.hbs
@@ -1,6 +1,6 @@
Catalog
-
You can add and remove catalogs here. When adding ensure you give your catalog a name and git url. The correct format of git urls can be found here .
+
The catalog can retrieve templates from multiple sources. Each one needs a unique name and any URL that git clone can handle (see docs for more info).
{{form-key-value
nameLabel="Catalog URL"
diff --git a/app/components/compose-yaml/component.js b/app/components/compose-yaml/component.js
new file mode 100644
index 000000000..994cb19f6
--- /dev/null
+++ b/app/components/compose-yaml/component.js
@@ -0,0 +1,28 @@
+import Ember from 'ember';
+
+export default Ember.Component.extend({
+ dockerCompose: null,
+ rancherCompose: null,
+
+ classNames: ['row'],
+
+ didReceiveAttrs() {
+ this.highlightAll();
+ },
+
+ highlightAll() {
+ Ember.run.next(() => {
+ this.$('CODE').each(function(idx, elem) {
+ Prism.highlightElement(elem);
+ });
+ });
+ },
+
+ // The highlighting breaks Ember's link to the content, so it's not automatically updated
+ // when the content change.. manually trigger that.
+ yamlChanged: function() {
+ this.$('CODE.docker-compose').html(this.get('dockerCompose'));
+ this.$('CODE.rancher-compose').html(this.get('rancherCompose'));
+ this.highlightAll();
+ }.observes('dockerCompose','rancherCompose'),
+});
diff --git a/app/components/compose-yaml/template.hbs b/app/components/compose-yaml/template.hbs
new file mode 100644
index 000000000..674fbd461
--- /dev/null
+++ b/app/components/compose-yaml/template.hbs
@@ -0,0 +1,8 @@
+
+ docker-compose.yml {{zero-clipboard text=dockerCompose}}
+
{{dockerCompose}}
+
+
+ rancher-compose.yml {{zero-clipboard text=rancherCompose}}
+
{{rancherCompose}}
+
diff --git a/app/components/edit-externalservice/component.js b/app/components/edit-externalservice/component.js
index cd1330aff..49ccc21c3 100644
--- a/app/components/edit-externalservice/component.js
+++ b/app/components/edit-externalservice/component.js
@@ -1,11 +1,12 @@
-import NewAlias from 'ui/components/new-aliasservice/component';
+import NewOrEdit from 'ui/mixins/new-or-edit';
import Ember from 'ember';
-export default NewAlias.extend({
+export default Ember.Component.extend(NewOrEdit, {
existing: Ember.computed.alias('originalModel'),
editing: true,
service: null,
+ primaryResource: Ember.computed.alias('service'),
actions: {
done() {
@@ -21,4 +22,12 @@ export default NewAlias.extend({
var original = this.get('originalModel');
this.set('service', original.clone());
},
+
+ doneSaving: function() {
+ this.send('done');
+ },
+
+ didInsertElement() {
+ this.$('INPUT')[0].focus();
+ },
});
diff --git a/app/components/environment-header/template.hbs b/app/components/environment-header/template.hbs
index 34d3839f5..4ec16078b 100644
--- a/app/components/environment-header/template.hbs
+++ b/app/components/environment-header/template.hbs
@@ -1,14 +1,11 @@