Skip to content

Commit a4fe8a0

Browse files
committed
Revert "Add support for X-ABLABEL refs #204"
This reverts commit 72bd8bf.
1 parent 72bd8bf commit a4fe8a0

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

js/components/detailsItem/detailsItem_controller.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)