Showing
1 changed file
with
7 additions
and
0 deletions
... | ... | @@ -102,6 +102,9 @@ export default function EntitySubtypeSelect($compile, $templateCache, $translate |
102 | 102 | } else if (scope.entityType == types.entityType.device) { |
103 | 103 | scope.entitySubtypeTitle = 'device.device-type'; |
104 | 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 | 109 | scope.entitySubtypes.length = 0; |
107 | 110 | if (scope.entitySubtypesList && scope.entitySubtypesList.length) { |
... | ... | @@ -118,6 +121,10 @@ export default function EntitySubtypeSelect($compile, $templateCache, $translate |
118 | 121 | scope.$on('deviceSaved', function() { |
119 | 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 | } | ... | ... |