Skip to content

Commit

Permalink
FIX ne pas afficher les boutons qui n'ont pas d'url + barre selection…
Browse files Browse the repository at this point in the history
… anglais theses-personnes
  • Loading branch information
clementdelafontaine committed Nov 18, 2024
1 parent ad7a9aa commit 49e9626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/common/DomainSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div role="listitem">
<v-btn flat @click="select('personnes')" :title="$t('rechercherPersonnes')" role="button">
<v-icon size="50" color="secondary">mdi-account-multiple</v-icon>
<span class="title">
<span class="title" :class="(locale === 'en' && selected === 'personnes') ? 'selected' : ''">
<h2>
{{ $t("toutesPersonnes") }}
<br />
Expand All @@ -29,7 +29,7 @@
import { ref, watch } from 'vue';
import { useI18n } from "vue-i18n";
const { t } = useI18n();
const { t, locale } = useI18n();
const selected = ref('theses');
const router = useRouter();
const currentRoute = useRoute();
Expand Down
2 changes: 1 addition & 1 deletion components/theses/ButtonsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
:href="b.url.startsWith('http') ? b.url : baseURL + b.url" target="_blank" :title="$t(b.libelle) + $t('externalLink')"
:aria-label="$t(b.libelle)" :flat="true">{{ $t(b.libelle) }}
</v-btn>
<v-card class="texte-embargo" role="listitem" variant="outlined" tabindex="0" v-else>
<v-card v-else-if="b.libelle === 'Embargo' || b.libelle === 'Confidentialite'" class="texte-embargo" role="listitem" variant="outlined" tabindex="0">
<img :alt="$t('theseView.alertSign')" class="icon-alert"
src="@/assets/triangle-exclamation-solid.svg" />
<span v-if="b.libelle === 'Embargo'">{{ $t("theseView.embargo") }} {{ b.dateFin.replaceAll("-", "/")
Expand Down

0 comments on commit 49e9626

Please sign in to comment.