Skip to content

Commit 961fc05

Browse files
chore: Update tooltip text for sync button in identityForm/actions.vue
1 parent 9ebbb04 commit 961fc05

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/components/identityForm/actions.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ div
33
q-btn.q-mx-xs(@click="submit" color="primary" icon="mdi-check")
44
q-tooltip.text-body2(slot="trigger") Enregistrer les modifications
55
q-btn.q-mx-xs(@click="sync" color="primary" v-if="identity" :disabled="props.identity.state != IdentityState.TO_VALIDATE" icon="mdi-sync")
6-
q-tooltip.text-body2(slot="trigger" v-if="props.identity.state == IdentityState.TO_VALIDATE") Syncroniser l'identité
6+
q-tooltip.text-body2(slot="trigger" v-if="props.identity.state == IdentityState.TO_VALIDATE") Synchroniser l'identité
77
q-tooltip.text-body2(slot="trigger" v-else) L'état de l'identité ne permet pas de la synchroniser
88
q-btn.q-mx-xs(@click="logs" color="primary" icon="mdi-file-document")
99
q-tooltip.text-body2(slot="trigger") Voir les logs de l'identité
@@ -22,14 +22,12 @@ import { useErrorHandling } from '#imports'
2222
type IdentityResponse = operations['IdentitiesController_search']['responses']['200']['content']['application/json']
2323
type Identity = components['schemas']['IdentitiesDto']
2424
25-
const props = defineProps(
26-
{
27-
identity: {
28-
type: Object as PropType<Identity>,
29-
required: true,
30-
},
31-
}
32-
)
25+
const props = defineProps({
26+
identity: {
27+
type: Object as PropType<Identity>,
28+
required: true,
29+
},
30+
})
3331
const $q = useQuasar()
3432
const router = useRouter()
3533
const { getStateColor, getStateName } = useIdentityStates()

src/composables/useIdentityStates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export enum IdentityState {
1717

1818
export const IdentityStateList = [
1919
{ value: IdentityState.SYNCED, text: 'Synchronisée', color: 'info', icon: 'mdi-circle', display: true},
20-
{ value: IdentityState.TO_SYNC, text: 'A syncroniser', color: 'info', icon: 'mdi-circle', display: true },
20+
{ value: IdentityState.TO_SYNC, text: 'A Synchroniser', color: 'info', icon: 'mdi-circle', display: true },
2121
{ value: IdentityState.TO_VALIDATE, text: 'A valider', color: 'positive', icon: 'mdi-circle', display: true },
2222
{ value: IdentityState.UNKNOWN, text: 'Inconnu', color: 'grey', icon: 'mdi-circle', display: true},
2323
{ value: IdentityState.TO_CREATE, text: 'A créer', color: 'grey', icon: 'mdi-circle', display: false},

0 commit comments

Comments
 (0)