From 8d28997ad7cbf2f3dd06358dd2725920dc373c5b Mon Sep 17 00:00:00 2001 From: CAPEL Maxime <83071634+fortyup@users.noreply.github.com> Date: Thu, 18 Jan 2024 16:15:52 +0100 Subject: [PATCH] Change compare button on menu --- src/main/kotlin/main/Compare.kt | 2 +- src/main/kotlin/main/CompareGlossary.kt | 2 +- src/main/kotlin/main/CompareProject.kt | 2 +- src/main/kotlin/main/Detail.kt | 2 +- src/main/kotlin/main/Glossary.kt | 2 +- src/main/kotlin/main/nb_occurrence.kt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/main/Compare.kt b/src/main/kotlin/main/Compare.kt index 26c10c5..d7172eb 100644 --- a/src/main/kotlin/main/Compare.kt +++ b/src/main/kotlin/main/Compare.kt @@ -81,7 +81,7 @@ fun compareResults( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/CompareGlossary.kt b/src/main/kotlin/main/CompareGlossary.kt index 9911a99..3abc255 100644 --- a/src/main/kotlin/main/CompareGlossary.kt +++ b/src/main/kotlin/main/CompareGlossary.kt @@ -98,7 +98,7 @@ fun glossaryList( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/CompareProject.kt b/src/main/kotlin/main/CompareProject.kt index 925cb91..c0b7254 100644 --- a/src/main/kotlin/main/CompareProject.kt +++ b/src/main/kotlin/main/CompareProject.kt @@ -96,7 +96,7 @@ fun projectList( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/Detail.kt b/src/main/kotlin/main/Detail.kt index 697d34d..c37d1c0 100644 --- a/src/main/kotlin/main/Detail.kt +++ b/src/main/kotlin/main/Detail.kt @@ -144,7 +144,7 @@ fun glossaryDetailedPage( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/Glossary.kt b/src/main/kotlin/main/Glossary.kt index b8818fd..93669a9 100644 --- a/src/main/kotlin/main/Glossary.kt +++ b/src/main/kotlin/main/Glossary.kt @@ -168,7 +168,7 @@ fun glossariesPage( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/nb_occurrence.kt b/src/main/kotlin/main/nb_occurrence.kt index 20ca34e..6f5bfff 100644 --- a/src/main/kotlin/main/nb_occurrence.kt +++ b/src/main/kotlin/main/nb_occurrence.kt @@ -125,7 +125,7 @@ fun parsedWordsTable( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } }