Skip to content

Commit

Permalink
refactor: use vuetify v-btn text api
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Oct 12, 2023
1 parent 198bd12 commit b626540
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 7 additions & 3 deletions src/main/webapp/src/components/dialogs/AdditionalDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,13 @@ const currentTabValue = computed<{
</v-card-text>
<v-card-actions v-if="currentPersonne && isEditAllowed(currentPersonne.etat)">
<v-spacer />
<v-btn :color="saveButton.color" :prepend-icon="saveButton.icon" :disabled="!canSave" @click="save">
{{ t(saveButton.i18n) }}
</v-btn>
<v-btn
:color="saveButton.color"
:prepend-icon="saveButton.icon"
:text="t(saveButton.i18n)"
:disabled="!canSave"
@click="save"
/>
</v-card-actions>
</v-card>
</v-dialog>
Expand Down
6 changes: 2 additions & 4 deletions src/main/webapp/src/views/structure/AdministrativeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ const showAll = ref<boolean>(false);
<v-btn
variant="tonal"
:prepend-icon="showAll ? 'fas fa-eye-slash' : 'fas fa-eye'"
:alt="t(showAll ? 'button.hideEmpty' : 'button.showAll')"
:text="t(showAll ? 'button.hideEmpty' : 'button.showAll')"
@click="showAll = !showAll"
>
{{ t(showAll ? 'button.hideEmpty' : 'button.showAll') }}
</v-btn>
/>
</div>
<filieres-layout :filieres="administrative" :show-all="showAll" />

Expand Down
6 changes: 2 additions & 4 deletions src/main/webapp/src/views/structure/TeachingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ const showAll = ref<boolean>(false);
<v-btn
variant="tonal"
:prepend-icon="showAll ? 'fas fa-eye-slash' : 'fas fa-eye'"
:alt="t(showAll ? 'button.hideEmpty' : 'button.showAll')"
:text="t(showAll ? 'button.hideEmpty' : 'button.showAll')"
@click="showAll = !showAll"
>
{{ t(showAll ? 'button.hideEmpty' : 'button.showAll') }}
</v-btn>
/>
</div>
<filieres-layout :filieres="teaching" :show-all="showAll" />

Expand Down

0 comments on commit b626540

Please sign in to comment.