diff --git a/src/app/components/customWidget/customWidget.service.js b/src/app/components/customWidget/customWidget.service.js index d78ce9ce7..b5ccfe75f 100644 --- a/src/app/components/customWidget/customWidget.service.js +++ b/src/app/components/customWidget/customWidget.service.js @@ -19,7 +19,7 @@ 'use strict'; /** - * @name CustomWidgetService + * @name CustomWidgetServices * @desc */ function CustomWidgetService($uibModal) { @@ -56,14 +56,17 @@ angular.extend(modalOptions, defaultModalOptions, customModalOptions); modal.controller = ['$scope','$uibModalInstance', 'widgetOptions', function ($scope, $uibModalInstance, widgetOptions) { - $scope.selected = ''; + $scope.selected = { + name: '', + 'text-oneline':'' + }; $scope.widgetOptions = {}; angular.extend($scope.widgetOptions, widgetOptions); $scope.modalOptions = modalOptions; $scope.modalOptions.ok = function (result) { - widgetOptions.name = $scope.selected; - widgetOptions.title = $scope.selected; - widgetOptions.dataModelOptions.name = $scope.selected; + widgetOptions.name = $scope.selected.name; + widgetOptions.title = $scope.selected.name; + widgetOptions.dataModelOptions.name = $scope.selected.name; $uibModalInstance.close(result); }; $scope.modalOptions.close = function () { diff --git a/src/app/components/customWidget/customWidgetModal.html b/src/app/components/customWidget/customWidgetModal.html index b7ed936a2..908f32f8d 100644 --- a/src/app/components/customWidget/customWidgetModal.html +++ b/src/app/components/customWidget/customWidgetModal.html @@ -1,7 +1,7 @@ +

{{ selected['text-oneline'] }}

Type