File tree Expand file tree Collapse file tree
js/components/detailsItem Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,18 +38,6 @@ angular.module('contactsApp')
3838 ctrl . availableOptions = ctrl . availableOptions . concat ( [ { id : ctrl . type , name : displayName } ] ) ;
3939 }
4040 }
41- if ( ! _ . isUndefined ( ctrl . data ) && ! _ . isUndefined ( ctrl . data . namespace ) ) {
42- if ( ! _ . isUndefined ( ctrl . model . contact . props [ 'X-ABLABEL' ] ) ) {
43- var val = _ . find ( this . model . contact . props [ 'X-ABLABEL' ] , function ( x ) { return x . namespace === ctrl . data . namespace ; } ) ;
44- ctrl . type = val . value ;
45- if ( ! _ . isUndefined ( val ) ) {
46- // in case the type is not yet in the default list of available options we add it
47- if ( ! ctrl . availableOptions . some ( function ( e ) { return e . id === val . value ; } ) ) {
48- ctrl . availableOptions = ctrl . availableOptions . concat ( [ { id : val . value , name : val . value } ] ) ;
49- }
50- }
51- }
52- }
5341 ctrl . availableGroups = [ ] ;
5442
5543 ContactService . getGroups ( ) . then ( function ( groups ) {
You can’t perform that action at this time.
0 commit comments