From 0bbb1cb54d11a293aaf1f16b54e4ba08b6937c4c Mon Sep 17 00:00:00 2001 From: EMaksy Date: Mon, 28 Aug 2023 12:27:26 +0200 Subject: [PATCH] Update story --- .../HostChecksSelection.stories.jsx | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/assets/js/components/HostDetails/HostChecksSelection.stories.jsx b/assets/js/components/HostDetails/HostChecksSelection.stories.jsx index 7be356f4eb..086a87c3ae 100644 --- a/assets/js/components/HostDetails/HostChecksSelection.stories.jsx +++ b/assets/js/components/HostDetails/HostChecksSelection.stories.jsx @@ -91,8 +91,25 @@ export default { }, }, onUpdateCatalog: { - action: 'Update catalog', - description: 'Called on mount to load the catalog for the host.', + description: 'Updates the catalog', + }, + + isSavingSelection: { + description: + 'Whether Save Checks Selection button is enabled or disabled', + }, + + onSaveSelection: { + description: 'Updates the selected checks on save', + }, + onSelectedChecksChange: { + description: 'Updates the selected checks', + }, + hostChecksExecutionEnabled: { + description: 'Whether start execution button is enabled or disabled', + }, + startExecution: { + description: 'Starts the host checks execution', }, }, }; @@ -107,6 +124,7 @@ export const Default = { catalog, catalogError: null, catalogLoading: false, - onUpdateCatalog: () => {}, + isSavingSelection: false, + hostChecksExecutionEnabled: false, }, };