diff --git a/airwatch/src/app/chatbot/tools-options/tools-options.ts b/airwatch/src/app/chatbot/tools-options/tools-options.ts index d7ff11b..7f9c617 100644 --- a/airwatch/src/app/chatbot/tools-options/tools-options.ts +++ b/airwatch/src/app/chatbot/tools-options/tools-options.ts @@ -26,7 +26,7 @@ export class ToolsOptions { } toggleFilter(filter: filterType, newState: boolean) { - // Find the index of the filter in the array + // Find the main-button of the filter in the array const filterIndex = this.filters.findIndex(f => f.name === filter.name); if (filterIndex !== -1) { diff --git a/airwatch/src/app/molecules/stories/alert-box.stories.ts b/airwatch/src/app/molecules/stories/alert-box.stories.ts index 35d1a33..ef2da79 100644 --- a/airwatch/src/app/molecules/stories/alert-box.stories.ts +++ b/airwatch/src/app/molecules/stories/alert-box.stories.ts @@ -1,7 +1,7 @@ import type {Meta, StoryObj} from '@storybook/angular'; import {moduleMetadata} from '@storybook/angular'; import {AlertBox} from 'sae-lib/alert-box/alert-box'; -import {CommonModule} from '@angular/common'; +// import {CommonModule} from '@angular/common'; const meta: Meta = { title: 'Components/AlertBox', @@ -9,8 +9,8 @@ const meta: Meta = { tags: ['autodocs'], decorators: [ moduleMetadata({ - imports: [CommonModule], - providers: [] + // imports: [CommonModule], + // providers: [] }) ], argTypes: { diff --git a/airwatch/src/app/reducers/index.ts b/airwatch/src/app/reducers/index.ts index a0989ef..0c56b23 100644 --- a/airwatch/src/app/reducers/index.ts +++ b/airwatch/src/app/reducers/index.ts @@ -169,9 +169,9 @@ function appReducer(state = initialState.app, action: AppActions) { ...action.payload }; case ActionTypes.SWITCH_TO_NEXT_THEME: - // Find the index of the current active theme + // Find the main-button of the current active theme const currentThemeIndex = state.themesList.indexOf(state.activeTheme); - // Calculate the index of the next theme (or go back to the first theme if at the end) + // Calculate the main-button of the next theme (or go back to the first theme if at the end) const nextThemeIndex = (currentThemeIndex + 1) % state.themesList.length; // Get the next theme const nextTheme = state.themesList[nextThemeIndex]; @@ -182,9 +182,9 @@ function appReducer(state = initialState.app, action: AppActions) { activeTheme: nextTheme }; case ActionTypes.SWITCH_TO_NEXT_LANGUAGE: - // Find the index of the current language + // Find the main-button of the current language const currentLangIndex = state.langsList.indexOf(state.lang); - // Calculate the index of the next language (or go back to the first language if at the end) + // Calculate the main-button of the next language (or go back to the first language if at the end) const nextLangIndex = (currentLangIndex + 1) % state.langsList.length; // Get the next language const nextLang = state.langsList[nextLangIndex];