Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Paper UI: Fix binding details view (#6364)
Browse files Browse the repository at this point in the history
Fixes #6356.

Signed-off-by: Henning Treu <henning.treu@telekom.de>
  • Loading branch information
htreu authored and kaikreuzer committed Oct 15, 2018
1 parent 2f03235 commit bf9667a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Expand Up @@ -17,12 +17,13 @@
this.configure = configure;
this.navigateTo = navigateTo;

activate();
this.$onInit = activate;

function activate() {
titleService.setTitle('Configuration');

var bindingId = $routeParams.bindingId;

bindingRepository.getOne(function(binding) {
return binding.id === bindingId;
}, function(binding) {
Expand Down
Expand Up @@ -2,7 +2,7 @@
(function() {
'use strict';

angular.module('PaperUI.bindings').directive('bindingThingtypes', {
angular.module('PaperUI.bindings').component('bindingThingtypes', {
bindings : {
binding : '='
},
Expand All @@ -12,7 +12,6 @@

function BindingThingtypesController() {
var ctrl = this;
this.binding;
this.filter = {
text : ''
};
Expand Down
Expand Up @@ -79,15 +79,10 @@
getAll(null, true).then(function(res) {
if (callback) {
resolveSingleElement(callback, find(condition));
return;
} else {
return;
}
}, function(res) {
callback(null);
return;
}, function(res) {
return;
});
}
}
Expand Down

0 comments on commit bf9667a

Please sign in to comment.