Skip to content
Snippets Groups Projects
Commit c40df2c6 authored by Mathis Neumann's avatar Mathis Neumann
Browse files

show list of updates

parent 9dc90ebd
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,10 @@ export default Ember.Service.extend({ ...@@ -19,7 +19,10 @@ export default Ember.Service.extend({
available: Ember.computed('empty', function() { available: Ember.computed('empty', function() {
return !this.get('empty'); return !this.get('empty');
}), }),
size: Ember.computed('_private.queue.[]', function() {
return this.get('_private.queue.length');
}),
empty: Ember.computed('_private.queue.[]', function() { empty: Ember.computed('_private.queue.[]', function() {
return this.get('_private.queue.length') === 0; return this.get('size') === 0;
}) })
}); });
\ No newline at end of file
{{#architecture-viewer graph=graphModel}} {{#architecture-viewer graph=graphModel}}
<button {{action 'applyQueueUpdates'}} type="button" class="btn {{if changelogQueue.empty 'btn-default' 'btn-warning'}}" disabled={{ changelogQueue.empty }} title="Updates are possible when the deployment changed and new information is ready to get visualized!"> <button {{action 'applyQueueUpdates'}} type="button" class="btn {{if changelogQueue.empty 'btn-default' 'btn-warning'}}" disabled={{ changelogQueue.empty }} title="Updates are possible when the deployment changed and new information is ready to get visualized!">
<i class="glyphicon glyphicon-refresh"></i> Apply Updates <i class="glyphicon glyphicon-refresh"></i> Apply Updates {{#if changelogQueue.available}}({{ changelogQueue.size }}){{/if}}
</button> </button>
{{!-- show entity details in sidebar if subroute (details) is used --}} {{!-- show entity details in sidebar if subroute (details) is used --}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment