IGNITE-10936 Web Console: Added support for single select mode on ui-grid.
diff --git a/frontend/app/components/ui-grid/component.js b/frontend/app/components/ui-grid/component.js
index d75cc6c..11ce4d7 100644
--- a/frontend/app/components/ui-grid/component.js
+++ b/frontend/app/components/ui-grid/component.js
@@ -36,6 +36,7 @@
items: '<',
columnDefs: '<',
categories: '<?',
+ singleSelect: '<?',
oneWaySelection: '<?',
rowIdentityKey: '@?',
selectedRows: '<?',
diff --git a/frontend/app/components/ui-grid/controller.js b/frontend/app/components/ui-grid/controller.js
index ec7101b..a6197b4 100644
--- a/frontend/app/components/ui-grid/controller.js
+++ b/frontend/app/components/ui-grid/controller.js
@@ -42,6 +42,9 @@
/** @type */
categories;
+ /** @type {boolean} */
+ singleSelect;
+
/** @type */
onSelectionChange;
@@ -58,6 +61,9 @@
/**
* @param {ng.IScope} $scope
+ * @param $element
+ * @param $timeout
+ * @param gridUtil
*/
constructor($scope, $element, $timeout, gridUtil) {
this.$scope = $scope;
@@ -85,6 +91,8 @@
columnDefs: this.columnDefs,
categories: this.categories,
rowHeight: this.rowHeight,
+ multiSelect: !this.singleSelect,
+ enableSelectAll: !this.singleSelect,
headerRowHeight: this.headerRowHeight,
columnVirtualizationThreshold: 30,
enableColumnMenus: false,