From af0307a419b7e7788ddfb52f8174de32d37d0bcd Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 8 Apr 2021 13:39:11 +0200 Subject: [PATCH] 2859 - Force translation for SMS --- front/core/components/field/index.js | 3 --- modules/ticket/front/descriptor-menu/index.js | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/front/core/components/field/index.js b/front/core/components/field/index.js index e10ef6383..40ea01e47 100644 --- a/front/core/components/field/index.js +++ b/front/core/components/field/index.js @@ -83,9 +83,6 @@ export default class Field extends FormInput { this._required = value; let required = this.element.querySelector('.required'); display(required, this._required); - - this.$.$applyAsync(() => - this.input.setAttribute('required', value)); } get required() { diff --git a/modules/ticket/front/descriptor-menu/index.js b/modules/ticket/front/descriptor-menu/index.js index 09783ec20..8ea08898f 100644 --- a/modules/ticket/front/descriptor-menu/index.js +++ b/modules/ticket/front/descriptor-menu/index.js @@ -165,13 +165,13 @@ class Controller extends Section { created: this.ticket.updated }; this.showSMSDialog({ - message: this.$params.message || this.$t('Minimum is needed', params) + message: this.$t('Minimum is needed', params) }); } sendPaymentSms() { this.showSMSDialog({ - message: this.$params.message || this.$t('Make a payment') + message: this.$t('Make a payment') }); }