Skip to content
Snippets Groups Projects
Commit ce43db44 authored by corentindrouet's avatar corentindrouet Committed by Romain Soufflet
Browse files

Didn't show team of users if the option is disable (#475)

parent 642eba40
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
import Ember from 'ember'; import Ember from 'ember';
export default Ember.Controller.extend({ export default Ember.Controller.extend({
configController: Ember.inject.controller('protected.configs'),
store: Ember.inject.service('store'), store: Ember.inject.service('store'),
activator: function() { activator: function() {
......
{{#if record.team.name}} {{#if targetObject.configController.teamEnabled}}
{{record.team.name}} {{#if record.team.name}}
{{else}} {{record.team.name}}
- {{else}}
{{/if}} -
{{#if targetObject.teams.length}} {{/if}}
<div class='rel in-bl fright' {{ action toggleUserSetting record }}> {{#if targetObject.teams.length}}
<div class='rel in-bl fright' {{ action toggleUserSetting record }}>
{{icon-component class='va-sub color-primary clickable color-default' hover-darker=true materialIcon='settings' size=16}} {{icon-component class='va-sub color-primary clickable color-default' hover-darker=true materialIcon='settings' size=16}}
{{#if record.teamOptionIsOpen}} {{#if record.teamOptionIsOpen}}
{{#popup-component isOpen=record.teamOptionIsOpen close=closePopup position="left"}} {{#popup-component isOpen=record.teamOptionIsOpen close=closePopup position="left"}}
<div class="list-group"> <div class="list-group">
<a href="#" class="list-group-item list-group-item-action unclickable active"><span class='va-tb'>Teams</span></a> <a href="#" class="list-group-item list-group-item-action unclickable active"><span class='va-tb'>Teams</span></a>
{{#each targetObject.teams as |team|}} {{#each targetObject.teams as |team|}}
<a href="#" class="list-group-item list-group-item-action" {{ action changeUserTeam record team }} >{{team.name}} <a href="#" class="list-group-item list-group-item-action" {{ action changeUserTeam record team }} >{{team.name}}
{{#if (is-equal team.id record.team.id)}} {{#if (is-equal team.id record.team.id)}}
{{icon-component materialIcon='done' class='color-primary in-bl va-sub fright' size=16}} {{icon-component materialIcon='done' class='color-primary in-bl va-sub fright' size=16}}
{{/if}} {{/if}}
</a> </a>
{{/each}} {{/each}}
</div> </div>
{{/popup-component}} {{/popup-component}}
{{/if}} {{/if}}
</div> </div>
{{/if}}
{{else}}
-
{{/if}} {{/if}}
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