diff --git a/ui/src/app/widget/lib/multiple-input-widget.js b/ui/src/app/widget/lib/multiple-input-widget.js index b559f9b7ee..11b74fd697 100644 --- a/ui/src/app/widget/lib/multiple-input-widget.js +++ b/ui/src/app/widget/lib/multiple-input-widget.js @@ -249,7 +249,7 @@ function MultipleInputWidgetController($q, $scope, $translate, attributeService, //For backward compatibility if (angular.isUndefined(source.keys[j].settings.dataKeyType)) { - if (vm.settings.attributesShared === true) { + if (vm.settings.attributesShared) { source.keys[j].settings.dataKeyType = 'shared'; } else { source.keys[j].settings.dataKeyType = 'server'; @@ -257,7 +257,7 @@ function MultipleInputWidgetController($q, $scope, $translate, attributeService, } if (angular.isUndefined(source.keys[j].settings.dataKeyValueType)) { - if (source.keys[j].settings.inputTypeNumber === true) { + if (source.keys[j].settings.inputTypeNumber) { source.keys[j].settings.dataKeyValueType = 'double'; } else { source.keys[j].settings.dataKeyValueType = 'string'; @@ -265,7 +265,7 @@ function MultipleInputWidgetController($q, $scope, $translate, attributeService, } if (angular.isUndefined(source.keys[j].settings.isEditable)) { - if (source.keys[j].settings.readOnly === true) { + if (source.keys[j].settings.readOnly) { source.keys[j].settings.isEditable = 'readonly'; } else { source.keys[j].settings.isEditable = 'editable'; diff --git a/ui/src/app/widget/lib/multiple-input-widget.tpl.html b/ui/src/app/widget/lib/multiple-input-widget.tpl.html index 247047fe90..bbe55ffc13 100644 --- a/ui/src/app/widget/lib/multiple-input-widget.tpl.html +++ b/ui/src/app/widget/lib/multiple-input-widget.tpl.html @@ -18,9 +18,12 @@
- {{ vm.getGroupTitle(source.datasource) }} -
-
+ {{ vm.getGroupTitle(source.datasource) }} + +
+
@@ -82,7 +85,7 @@
-
+
-
+
-
- +
+ {{ 'action.undo' | translate }} - + {{ 'action.save' | translate }}
-
+
{{ 'widgets.input-widgets.no-entity-selected' | translate }}
-
+
{{ 'widgets.input-widgets.not-allowed-entity' | translate }}