diff --git a/src/locales/en.json b/src/locales/en.json index ca4655c74be1812daea0b5102ce5da9e027abefa..0e4d6fb06c450aa6eacf270d8b13cbb69a178ad3 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -379,6 +379,9 @@ "no": "No" }, "chat": { - "notifyall": "Notify all circle users" + "notifyall": "Notify all circle users", + "removeContact.question": "You are about to remove this contact. Are you sure ?", + "removeContact.yes": "Yes, confirm", + "removeContact.no": "No, it's a mistake" } } diff --git a/src/locales/es.json b/src/locales/es.json index 4d4af2c32031de3d0f5cb3e0b6e0ffd2181e626c..cfbdd1a798612d89dd4215f913c3e08393aec9e0 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -379,6 +379,9 @@ "no": "No" }, "chat": { - "notifyall": "Notificar a todos los usuarios del cÃrculo" + "notifyall": "Notificar a todos los usuarios del cÃrculo", + "removeContact.question": "Estás a punto de retirar este contacto. ¿Estás seguro?", + "removeContact.yes": "SÃ, validar", + "removeContact.no": "No, es un error" } } diff --git a/src/locales/fr.json b/src/locales/fr.json index a5ea92c95b8ca46a7fcb4ea2405f7d64b6e06c2e..9f7ee4e5c682cfe94396c417d9c3bb78dce2bd82 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -377,6 +377,9 @@ "no": "Non" }, "chat": { - "notifyall": "Notifier tous les utilisateurs du cercle" + "notifyall": "Notifier tous les utilisateurs du cercle", + "removeContact.question": "Vous êtes sur le point de retirer ce contact. Etes-vous sûr ?", + "removeContact.yes": "Oui, valider", + "removeContact.no": "Non, c'est une erreur" } } diff --git a/src/views/partials/widgets/orbit-menu-contact-removed.pug b/src/views/partials/widgets/orbit-menu-contact-removed.pug index 3fa488b80284efbf80de0fd9694a073298dd2217..925fc3c75dde3fcb0cb5f71c1738dd253fba68c7 100644 --- a/src/views/partials/widgets/orbit-menu-contact-removed.pug +++ b/src/views/partials/widgets/orbit-menu-contact-removed.pug @@ -1,5 +1,12 @@ if componentSet.has('chat') solid-widget(name='orbit-menu-contact-removed') template ${value != "" ? ` - <solid-delete class="menu-delete-button button-remove icon children-icon-close" data-src='${value}' data-label="d" confirmation-type="confirm" confirmation-message="Vous êtes sur le point de retirer ce contact. Etes-vous sûr ?" confirmation-submit-text="Oui, valider" confirmation-cancel-text="Non, c'est une erreur" confirmation-submit-class="segment sm-full text-center button text-xsmall text-bold text-uppercase reversed color-secondary bordered padding-right-medium padding-left-medium margin-right-xsmall sm-margin-right-none sm-margin-bottom-medium" confirmation-cancel-class="segment sm-full text-center button text-xsmall text-bold text-uppercase color-secondary bordered padding-right-medium padding-left-medium margin-left-xsmall sm-margin-left-none"></solid-delete>` : ""} - //- Fix: using type confirm, dialog is not available on Firefox, polyfill only works if dialog is a direct child of body \ No newline at end of file + <solid-delete class="menu-delete-button button-remove icon children-icon-close" data-src='${value}' data-label="d" confirmation-type="confirm" data-trans="confirmation-message=Vous êtes sur le point de retirer ce contact. Etes-vous sûr ?" confirmation-submit-text="Oui, valider" confirmation-cancel-text="Non, c'est une erreur" confirmation-submit-class="segment sm-full text-center button text-xsmall text-bold text-uppercase reversed color-secondary bordered padding-right-medium padding-left-medium margin-right-xsmall sm-margin-right-none sm-margin-bottom-medium" confirmation-cancel-class="segment sm-full text-center button text-xsmall text-bold text-uppercase color-secondary bordered padding-right-medium padding-left-medium margin-left-xsmall sm-margin-left-none"></solid-delete>` : ""} + + //- template + //- solid-delete(class="menu-delete-button button-remove icon children-icon-close" data-src='${value}' data-label="d" confirmation-type="confirm" data-trans='confirmation-message=removeContact.question' confirmation-submit-class="segment sm-full text-center button text-xsmall text-bold text-uppercase reversed color-secondary bordered padding-right-medium padding-left-medium margin-right-xsmall sm-margin-right-none sm-margin-bottom-medium" confirmation-cancel-class="segment sm-full text-center button text-xsmall text-bold text-uppercase color-secondary bordered padding-right-medium padding-left-medium margin-left-xsmall sm-margin-left-none") + + //- Fix: using type confirm, dialog is not available on Firefox, polyfill only works if dialog is a direct child of body + //- For dialog type : data-trans='confirmation-message=removeContact.question;confirmation-submit-text=removeContact.yes;confirmation-cancel-text=removeContact.no' + + \ No newline at end of file