diff --git a/app/components/labels-section/component.js b/app/components/labels-section/component.js index 4c3f3ebfb..d323134a2 100644 --- a/app/components/labels-section/component.js +++ b/app/components/labels-section/component.js @@ -1,21 +1,33 @@ import Ember from 'ember'; import ManageLabels from 'ui/mixins/manage-labels'; -import Sortable from 'ui/mixins/sortable'; -export default Ember.Component.extend(ManageLabels, Sortable, { +export default Ember.Component.extend(ManageLabels, { model : null, labelSource : Ember.computed.alias('model.labels'), - sortableContent : Ember.computed.alias('labelArray'), sortBy : 'kind', showKind : true, descending : true, - sorts: { - kind : ['type','key'], - key : ['key'], - value : ['value','key'], - }, + headers: [ + { + name: 'kind', + sort: ['type','key'], + translationKey: 'labelsSection.kind', + width: '90', + }, + { + name: 'key', + sort: ['key'], + translationKey: 'labelsSection.key', + width: '350', + }, + { + name: 'value', + sort: ['value','key'], + translationKey: 'labelsSection.value', + }, + ], labelsObserver: Ember.observer('model.labels', function () { this.initLabels(this.get('labelSource')); diff --git a/app/components/labels-section/template.hbs b/app/components/labels-section/template.hbs index 464506ae9..89625f0f4 100644 --- a/app/components/labels-section/template.hbs +++ b/app/components/labels-section/template.hbs @@ -1,22 +1,19 @@ -
| {{uc-first label.type}} | {{/if}} -{{label.key}} | -{{pretty-json value=label.value}} | -
| {{t 'labelsSection.noData'}} | ||