diff --git a/app/applications-tab/catalog/template.hbs b/app/applications-tab/catalog/template.hbs index aeeb154af..1538bb0fd 100644 --- a/app/applications-tab/catalog/template.hbs +++ b/app/applications-tab/catalog/template.hbs @@ -27,7 +27,7 @@ {{#each arrangedContent as |catalogItem|}}
{{catalogItem.name}}
- {{catalogItem.name}} + {{catalogItem.name}}
{{catalogItem.description}}
{{#link-to "applications-tab.catalog.launch" catalogItem.path class="btn btn-sm btn-primary"}}View Details{{/link-to}}
diff --git a/app/components/account-row/template.hbs b/app/components/account-row/template.hbs index 9f4cca21a..ca50df6b1 100644 --- a/app/components/account-row/template.hbs +++ b/app/components/account-row/template.hbs @@ -30,5 +30,5 @@ {{/if}} - + {{partial "fast-action-menu"}} diff --git a/app/components/action-menu/component.js b/app/components/action-menu/component.js index 66a025a82..7cb693558 100644 --- a/app/components/action-menu/component.js +++ b/app/components/action-menu/component.js @@ -1,21 +1,38 @@ import Ember from 'ember'; export default Ember.Component.extend({ + model: null, + size: 'xs', + showPrimary: true, + resourceActions: Ember.inject.service('resource-actions'), - model: null, + tagName: 'div', + classNames: ['btn-group','resource-actions','action-menu'], - classNames: ['resource-actions'], + didInsertElement() { + this.$().tooltip({ + selector: '*[tooltip]', + animation: false, + container: 'body', + title: function() { + return $(this).attr('tooltip'); + } + }); + }, - click(event) { - event.preventDefault(); - event.stopPropagation(); - this.get('resourceActions').show(this.get('model'), event.target, this.$()); + click(e) { + if ( Ember.$(e.target).closest('.resource-actions').length ) + { + e.preventDefault(); + e.stopPropagation(); + this.get('resourceActions').show(this.get('model'), e.target, this.$()); + } }, actions: { - clicked: function(actionName) { - this.get('model').send(actionName); + sendAction: function(action) { + this.get('model').send(action); } }, }); diff --git a/app/components/action-menu/template.hbs b/app/components/action-menu/template.hbs index 8f58411b2..e5d0070fd 100644 --- a/app/components/action-menu/template.hbs +++ b/app/components/action-menu/template.hbs @@ -1 +1,7 @@ - +{{#if showPrimary}} + {{#each model.primaryActions as |act|}} + + {{/each}} +{{/if}} + + diff --git a/app/components/apikey-row/template.hbs b/app/components/apikey-row/template.hbs index 359a1dcfd..fec85fa7e 100644 --- a/app/components/apikey-row/template.hbs +++ b/app/components/apikey-row/template.hbs @@ -16,5 +16,5 @@
{{date-calendar model.created}}
- + {{partial "fast-action-menu"}} diff --git a/app/components/certificate-row/template.hbs b/app/components/certificate-row/template.hbs index cfed9060e..07bce03a9 100644 --- a/app/components/certificate-row/template.hbs +++ b/app/components/certificate-row/template.hbs @@ -22,5 +22,5 @@ - + {{partial "fast-action-menu"}} diff --git a/app/components/container-row/template.hbs b/app/components/container-row/template.hbs index 55bcba640..b88f57d9f 100644 --- a/app/components/container-row/template.hbs +++ b/app/components/container-row/template.hbs @@ -30,5 +30,5 @@ {{/if}} - + {{partial "fast-action-menu"}} diff --git a/app/components/container-subpod/template.hbs b/app/components/container-subpod/template.hbs index 349155deb..67812bece 100644 --- a/app/components/container-subpod/template.hbs +++ b/app/components/container-subpod/template.hbs @@ -1,4 +1,4 @@ -{{action-menu model=model}} +{{action-menu model=model showPrimary=false}} {{#if groupHasChildren}}
diff --git a/app/components/host-pod/template.hbs b/app/components/host-pod/template.hbs index eb4a8861c..b640a9010 100644 --- a/app/components/host-pod/template.hbs +++ b/app/components/host-pod/template.hbs @@ -1,7 +1,5 @@
-
- -
+
{{partial "fast-action-menu"}}
{{model.displayState}}
@@ -50,10 +48,10 @@
{{#if model.cpuBlurb}} -
{{model.cpuBlurb}}
+
{{model.cpuBlurb}}
{{/if}} {{#if model.memoryBlurb}} -
{{model.memoryBlurb}}
+
{{model.memoryBlurb}}
{{/if}} {{#if model.diskBlurb}}
{{model.diskBlurb}}
diff --git a/app/components/identity-avatar/component.js b/app/components/identity-avatar/component.js index 91782053d..3ed6913cd 100644 --- a/app/components/identity-avatar/component.js +++ b/app/components/identity-avatar/component.js @@ -3,7 +3,7 @@ import Ember from 'ember'; export default Ember.Component.extend({ identity: null, link: true, - size: 36, + size: 35, classNames: ['gh-avatar'], attributeBindings: ['aria-label:identity.name'], diff --git a/app/components/identity-block/component.js b/app/components/identity-block/component.js index b35f027ee..7345341e6 100644 --- a/app/components/identity-block/component.js +++ b/app/components/identity-block/component.js @@ -9,7 +9,7 @@ export default Ember.Component.extend({ avatar: true, link: true, - size: 36, + size: 35, loading: false, didInitAttrs: function() { diff --git a/app/components/lb-addtl-info/template.hbs b/app/components/lb-addtl-info/template.hbs index 53499d586..444e9c8c3 100644 --- a/app/components/lb-addtl-info/template.hbs +++ b/app/components/lb-addtl-info/template.hbs @@ -4,7 +4,7 @@

{{service.state}}

{{#link-to 'service' service.id class='btn btn-success btn-xs r-mr15'}} View Details {{/link-to}} - {{svg-action-menu model=service size='xs'}} + {{action-menu model=service size='xs'}}
diff --git a/app/components/page-header/template.hbs b/app/components/page-header/template.hbs index 089f91fce..8327ce31d 100644 --- a/app/components/page-header/template.hbs +++ b/app/components/page-header/template.hbs @@ -1,4 +1,4 @@ -
+
-
- -
+