Fixed search subtype
This commit is contained in:
parent
2cdca18bf4
commit
ee84dbdd84
@ -102,6 +102,9 @@ export default function EntitySubtypeSelect($compile, $templateCache, $translate
|
|||||||
} else if (scope.entityType == types.entityType.device) {
|
} else if (scope.entityType == types.entityType.device) {
|
||||||
scope.entitySubtypeTitle = 'device.device-type';
|
scope.entitySubtypeTitle = 'device.device-type';
|
||||||
scope.entitySubtypeRequiredText = 'device.device-type-required';
|
scope.entitySubtypeRequiredText = 'device.device-type-required';
|
||||||
|
} else if (scope.entityType == types.entityType.entityView) {
|
||||||
|
scope.entitySubtypeTitle = 'entity-view.entity-view-type';
|
||||||
|
scope.entitySubtypeRequiredText = 'entity-view.entity-view-type-required';
|
||||||
}
|
}
|
||||||
scope.entitySubtypes.length = 0;
|
scope.entitySubtypes.length = 0;
|
||||||
if (scope.entitySubtypesList && scope.entitySubtypesList.length) {
|
if (scope.entitySubtypesList && scope.entitySubtypesList.length) {
|
||||||
@ -118,6 +121,10 @@ export default function EntitySubtypeSelect($compile, $templateCache, $translate
|
|||||||
scope.$on('deviceSaved', function() {
|
scope.$on('deviceSaved', function() {
|
||||||
loadSubTypes();
|
loadSubTypes();
|
||||||
});
|
});
|
||||||
|
} else if (scope.entityType == types.entityType.entityView) {
|
||||||
|
scope.$on('entityViewSaved', function() {
|
||||||
|
loadSubTypes();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user