Showing
1 changed file
with
7 additions
and
0 deletions
@@ -102,6 +102,9 @@ export default function EntitySubtypeSelect($compile, $templateCache, $translate | @@ -102,6 +102,9 @@ export default function EntitySubtypeSelect($compile, $templateCache, $translate | ||
102 | } else if (scope.entityType == types.entityType.device) { | 102 | } else if (scope.entityType == types.entityType.device) { |
103 | scope.entitySubtypeTitle = 'device.device-type'; | 103 | scope.entitySubtypeTitle = 'device.device-type'; |
104 | scope.entitySubtypeRequiredText = 'device.device-type-required'; | 104 | scope.entitySubtypeRequiredText = 'device.device-type-required'; |
105 | + } else if (scope.entityType == types.entityType.entityView) { | ||
106 | + scope.entitySubtypeTitle = 'entity-view.entity-view-type'; | ||
107 | + scope.entitySubtypeRequiredText = 'entity-view.entity-view-type-required'; | ||
105 | } | 108 | } |
106 | scope.entitySubtypes.length = 0; | 109 | scope.entitySubtypes.length = 0; |
107 | if (scope.entitySubtypesList && scope.entitySubtypesList.length) { | 110 | if (scope.entitySubtypesList && scope.entitySubtypesList.length) { |
@@ -118,6 +121,10 @@ export default function EntitySubtypeSelect($compile, $templateCache, $translate | @@ -118,6 +121,10 @@ export default function EntitySubtypeSelect($compile, $templateCache, $translate | ||
118 | scope.$on('deviceSaved', function() { | 121 | scope.$on('deviceSaved', function() { |
119 | loadSubTypes(); | 122 | loadSubTypes(); |
120 | }); | 123 | }); |
124 | + } else if (scope.entityType == types.entityType.entityView) { | ||
125 | + scope.$on('entityViewSaved', function() { | ||
126 | + loadSubTypes(); | ||
127 | + }); | ||
121 | } | 128 | } |
122 | } | 129 | } |
123 | } | 130 | } |