Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export default Controller.extend(FilterState, {
headers,
searchText: '',
filterableContent: computed('model.projectRoleTemplateBindings.[]', function() {
return get(this, 'model.projectRoleTemplateBindings').filter((b) => get(b, 'userId'));
return get(this, 'model.projectRoleTemplateBindings').filter((b) => !get(b, 'serviceAccount'));
}),
});
2 changes: 1 addition & 1 deletion lib/shared/addon/components/form-members/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default Component.extend({
// editing
let mOut = [];

set(this, 'memberArray', bindings.filter((b) => get(b, 'userId')).forEach((b) => {
set(this, 'memberArray', bindings.filter((b) => !get(b, 'serviceAccount')).forEach((b) => {
let match = mOut.findBy('principalId', get(b, 'principalIdReference')) ;

if (match) {
Expand Down
15 changes: 12 additions & 3 deletions lib/shared/addon/components/project-member-row/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
{{else if principalId}}
<div class="gh-block">
<div class="gh-avatar">
<img src="{{principalGravatarSrc}}" width="34" height="34">
<img
src="{{principalGravatarSrc}}"
width="34"
height="34"
>
</div>
<div class="gh-block-content">
<div class="clip gh-block-name">
Expand Down Expand Up @@ -36,13 +40,18 @@
{{t 'generic.custom'}}
{{/if}}
{{else}}
{{searchable-select change="onSelect" content=choices value=roleTemplateId readOnly=noUpdate}}
{{searchable-select
change=(action "onSelect")
content=choices
value=roleTemplateId
readOnly=noUpdate
}}
{{/if}}
{{/if}}
</td>
<td>&nbsp;</td>
<div class="input-group-btn">
{{#unless owner}}
{{#unless owner}}
<button class="btn bg-primary btn-sm" {{action remove member}}>
<i class="icon icon-minus" />
</button>
Expand Down