@ansible/ansible-ui-framework 0.0.594 → 0.0.596
Sign up to get free protection for your applications and to get access to all the features.
@@ -87,7 +87,7 @@ function BulkConfirmationDialog(props) {
|
|
87
87
|
}
|
88
88
|
return items;
|
89
89
|
}, [isItemNonActionable, items]);
|
90
|
-
return ((0, jsx_runtime_1.jsx)(react_core_1.Modal, __assign({ titleIconVariant: isDanger ? 'warning' : undefined, title: title, description: prompt, variant: react_core_1.ModalVariant.medium, isOpen: true, onClose: onCloseClicked, actions: [
|
90
|
+
return ((0, jsx_runtime_1.jsx)(react_core_1.Modal, __assign({ titleIconVariant: isDanger ? 'warning' : undefined, title: title, "aria-label": title, description: prompt, variant: react_core_1.ModalVariant.medium, isOpen: true, onClose: onCloseClicked, actions: [
|
91
91
|
(0, jsx_runtime_1.jsx)(react_core_1.Button, __assign({ variant: isDanger ? 'danger' : 'primary', onClick: function () {
|
92
92
|
onCloseClicked();
|
93
93
|
onConfirm();
|
package/cjs/useSelectDialog.js
CHANGED
@@ -69,7 +69,7 @@ exports.useSelectDialog = useSelectDialog;
|
|
69
69
|
function SelectDialog(props) {
|
70
70
|
var title = props.title, open = props.open, _a = props.isMultiple, isMultiple = _a === void 0 ? false : _a, setOpen = props.setOpen, onSelect = props.onSelect, view = props.view, tableColumns = props.tableColumns, toolbarFilters = props.toolbarFilters, confirm = props.confirm, cancel = props.cancel, selected = props.selected;
|
71
71
|
var onClose = function () { return setOpen(false); };
|
72
|
-
return ((0, jsx_runtime_1.jsxs)(react_core_1.Modal, __assign({ title: title, isOpen: open, onClose: onClose, variant: react_core_1.ModalVariant.medium, tabIndex: 0, actions: [
|
72
|
+
return ((0, jsx_runtime_1.jsxs)(react_core_1.Modal, __assign({ title: title, "aria-label": title, isOpen: open, onClose: onClose, variant: react_core_1.ModalVariant.medium, tabIndex: 0, actions: [
|
73
73
|
(0, jsx_runtime_1.jsx)(react_core_1.Button, __assign({ variant: "primary", onClick: function () {
|
74
74
|
if (!isMultiple && view.selectedItems.length > 0) {
|
75
75
|
onSelect(view.selectedItems[0]);
|