From 5abacd14de6c79902c9c9f08eb2e161c4cfdf573 Mon Sep 17 00:00:00 2001 From: MytsV Date: Fri, 9 Aug 2024 15:53:39 +0300 Subject: [PATCH] Fix view model parameters in the stories --- src/component-library/Demos/01_0_Login_MultiVO.stories.ts | 4 ++++ src/component-library/Demos/01_1_Login.stories.tsx | 2 ++ .../Demos/01_2_Login_multi_account.stories.tsx | 2 ++ src/component-library/Pages/Login/Login.stories.tsx | 2 ++ 4 files changed, 10 insertions(+) diff --git a/src/component-library/Demos/01_0_Login_MultiVO.stories.ts b/src/component-library/Demos/01_0_Login_MultiVO.stories.ts index 862ceef45..3fe43dd90 100644 --- a/src/component-library/Demos/01_0_Login_MultiVO.stories.ts +++ b/src/component-library/Demos/01_0_Login_MultiVO.stories.ts @@ -66,6 +66,8 @@ export const ABasicLogin: Story = { multiVOEnabled: false, voList: [voAtlas, voCMS], isLoggedIn: false, + accountsAvailable: undefined, + accountActive: undefined, rucioAuthHost: 'https://rucio.cern.ch', }, authViewModel: { @@ -92,6 +94,8 @@ export const ABasicMultiVOLogin: Story = { multiVOEnabled: true, voList: [voAtlas, voCMS, voLHCb], isLoggedIn: false, + accountsAvailable: undefined, + accountActive: undefined, rucioAuthHost: 'https://rucio.cern.ch', }, authViewModel: { diff --git a/src/component-library/Demos/01_1_Login.stories.tsx b/src/component-library/Demos/01_1_Login.stories.tsx index c02305024..87922967b 100644 --- a/src/component-library/Demos/01_1_Login.stories.tsx +++ b/src/component-library/Demos/01_1_Login.stories.tsx @@ -58,6 +58,8 @@ export const Playbook_InitLogin: Story = { multiVOEnabled: true, voList: [voAtlas, voCMS], isLoggedIn: false, + accountsAvailable: undefined, + accountActive: undefined, rucioAuthHost: 'https://rucio.cern.ch', }, authViewModel: { diff --git a/src/component-library/Demos/01_2_Login_multi_account.stories.tsx b/src/component-library/Demos/01_2_Login_multi_account.stories.tsx index 7e573e891..a48025f4d 100644 --- a/src/component-library/Demos/01_2_Login_multi_account.stories.tsx +++ b/src/component-library/Demos/01_2_Login_multi_account.stories.tsx @@ -57,6 +57,8 @@ export const Playbook_Multi_Account: Story = { oidcProviders: [cernOIDCProvider], multiVOEnabled: true, voList: [voAtlas, voCMS], + accountsAvailable: undefined, + accountActive: undefined, isLoggedIn: false, rucioAuthHost: 'https://rucio.cern.ch', }, diff --git a/src/component-library/Pages/Login/Login.stories.tsx b/src/component-library/Pages/Login/Login.stories.tsx index 93ea7595b..676a6c4e3 100644 --- a/src/component-library/Pages/Login/Login.stories.tsx +++ b/src/component-library/Pages/Login/Login.stories.tsx @@ -57,6 +57,8 @@ LoginPage.args = { multiVOEnabled: true, voList: [voAtlas, voCMS], isLoggedIn: false, + accountsAvailable: undefined, + accountActive: undefined, rucioAuthHost: 'https://rucio.cern.ch', }, authViewModel: {