diff --git a/sae-csc/src/app/pages/main/main.html b/sae-csc/src/app/pages/main/main.html index d33b15e..56104e5 100644 --- a/sae-csc/src/app/pages/main/main.html +++ b/sae-csc/src/app/pages/main/main.html @@ -32,14 +32,14 @@

Question analysis

- @if (appState?.botMessage) { + @if (displayBotWarning) { }
-
diff --git a/sae-csc/src/app/pages/main/main.ts b/sae-csc/src/app/pages/main/main.ts index c561f4a..e0fe7e9 100644 --- a/sae-csc/src/app/pages/main/main.ts +++ b/sae-csc/src/app/pages/main/main.ts @@ -23,6 +23,7 @@ import {StateInterface} from '../../redux/reducers'; export class Main { public appState: any = {}; + public displayBotWarning: boolean = true; constructor(private store: Store) { this.store.select(state => state.app).subscribe(app => { @@ -32,8 +33,9 @@ export class Main { } - onSelectedChoicesChange(e: any) { - console.log('onSelectedChoicesChange', e); + onSelectedChoicesChange() { + console.log('onSelectedChoicesChange'); + this.displayWarningToCheckFilters() } onAvailableChoicesChange(e: any) { @@ -41,7 +43,8 @@ export class Main { } displayWarningToCheckFilters() { + this.displayBotWarning = true; // update app, displayBotT - this.store.dispatch() + // this.store.dispatch() } } diff --git a/sae-csc/src/app/redux/initialState.ts b/sae-csc/src/app/redux/initialState.ts index 701d44e..6a4480f 100644 --- a/sae-csc/src/app/redux/initialState.ts +++ b/sae-csc/src/app/redux/initialState.ts @@ -11,7 +11,7 @@ export const initialState: StateInterface = { // fromText: "", fromFile: "", toText: "", - botMessage: "", + botMessage: "Veuillez vérifier les filtres préselectionnés", dicaReference: "azhe ekhjfhkj e hkjzekjh", dicaReferenceURL: "fgkj kjrjgik .pdf", associatedDocuments: [{ @@ -21,7 +21,6 @@ export const initialState: StateInterface = { filters: { engineType: { availableList: [{ - label: 'ABC', value: 'ABC', }], @@ -44,7 +43,10 @@ export const initialState: StateInterface = { }, technicalManual: { availableList: [], - selectedList: [] + selectedList: [{ + label: 'DEF', + value: 'DEF', + }] }, onOffWing: { availableList: [], diff --git a/sae-csc/src/app/shared/navigation/bottom-navigation/bottom-navigation.scss b/sae-csc/src/app/shared/navigation/bottom-navigation/bottom-navigation.scss index a0ade46..a8c9cbf 100644 --- a/sae-csc/src/app/shared/navigation/bottom-navigation/bottom-navigation.scss +++ b/sae-csc/src/app/shared/navigation/bottom-navigation/bottom-navigation.scss @@ -1,4 +1,6 @@ .bottom-navigation { + position: absolute; + top: 1000px; padding: 0 60px 16px; .nav-item { diff --git a/sae-csc/src/app/shared/translate-texts/translate-texts.scss b/sae-csc/src/app/shared/translate-texts/translate-texts.scss index ef927c4..1fe786e 100644 --- a/sae-csc/src/app/shared/translate-texts/translate-texts.scss +++ b/sae-csc/src/app/shared/translate-texts/translate-texts.scss @@ -87,7 +87,7 @@ border: 1px solid var(--color-text-title, variables.$csc-nav-color); background: var(--color-background-card-on-base, #FFF); left: 0; - top: 68px; + top: 165px; position: relative; font-weight: 600;