Skip to content

Commit

Permalink
feat(nethcti-server): added params in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
edospadoni committed Dec 10, 2024
1 parent b23acd5 commit 3fc5c82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions imageroot/actions/get-configuration/20read
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 3 additions & 0 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ export default {
rebranding_login_logo_dark_url: "",
rebranding_login_people: false,
nethvoice_adm: {},
nethcti_privacy_numbers,
},
isDarkMode: false,
config: {},
Expand Down Expand Up @@ -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");
},
Expand Down Expand Up @@ -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", {
Expand Down

0 comments on commit 3fc5c82

Please sign in to comment.