mirror of https://github.com/rancher/ui.git
19 lines
402 B
JavaScript
19 lines
402 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.View.extend({
|
|
didInsertElement: function() {
|
|
this._super();
|
|
this.highlightAll();
|
|
},
|
|
|
|
highlightAll: function() {
|
|
this.$('CODE').each(function(idx, elem) {
|
|
Prism.highlightElement(elem);
|
|
});
|
|
},
|
|
|
|
yamlChanged: function() {
|
|
this.highlightAll();
|
|
}.observes('composeConfig.{dockerComposeConfig,rancherComposeConfig}'),
|
|
});
|