From 3fc5c8218900656b261cc7ddc02a65a646eef754 Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Tue, 10 Dec 2024 17:30:26 +0100 Subject: [PATCH] feat(nethcti-server): added params in UI --- imageroot/actions/get-configuration/20read | 1 + ui/src/views/Settings.vue | 3 +++ 2 files changed, 4 insertions(+) diff --git a/imageroot/actions/get-configuration/20read b/imageroot/actions/get-configuration/20read index 2aa004119..369e3d861 100755 --- a/imageroot/actions/get-configuration/20read +++ b/imageroot/actions/get-configuration/20read @@ -20,6 +20,7 @@ config = { 'reports_international_prefix': os.getenv('REPORTS_INTERNATIONAL_PREFIX', ''), 'nethvoice_adm_username': os.getenv('NETHVOICE_USER_PORTAL_USERNAME', ''), 'nethvoice_adm_password': agent.read_envfile("passwords.env").get('NETHVOICE_USER_PORTAL_PASSWORD',""), + 'nethcti_privacy_numbers': os.getenv('NETHCTI_PRIVACY_NUMBERS', 'xxx'), } json.dump(config, fp=sys.stdout) diff --git a/ui/src/views/Settings.vue b/ui/src/views/Settings.vue index f91745824..db476db73 100644 --- a/ui/src/views/Settings.vue +++ b/ui/src/views/Settings.vue @@ -381,6 +381,7 @@ export default { rebranding_login_logo_dark_url: "", rebranding_login_people: false, nethvoice_adm: {}, + nethcti_privacy_numbers, }, isDarkMode: false, config: {}, @@ -548,6 +549,7 @@ export default { this.form.timezone = config.timezone; this.form.nethvoice_adm.username = config.nethvoice_adm_username; this.form.nethvoice_adm.password = config.nethvoice_adm_password; + this.form.nethcti_privacy_numbers = config.nethcti_privacy_numbers; this.focusElement("nethvoice_host"); }, @@ -789,6 +791,7 @@ export default { timezone: this.form.timezone, nethvoice_adm_username: this.form.nethvoice_adm.username, nethvoice_adm_password: this.form.nethvoice_adm.password, + nethcti_privacy_numbers: this.form.nethcti_privacy_numbers }, extra: { title: this.$t("settings.configure_instance", {