Просмотр исходного кода

element-web camelCase renaming (branding.welcomeBackgroundUrl -> branding.welcome_background_url)

pull/2820/head
Slavi Pantaleev 2 лет назад
Родитель
Сommit
e9c0e90147
3 измененных файлов: 3 добавлений и 2 удалений
  1. +1
    -1
      roles/custom/matrix-client-element/defaults/main.yml
  2. +1
    -0
      roles/custom/matrix-client-element/tasks/validate_config.yml
  3. +1
    -1
      roles/custom/matrix-client-element/templates/config.json.j2

+ 1
- 1
roles/custom/matrix-client-element/defaults/main.yml Просмотреть файл

@@ -175,7 +175,7 @@ matrix_client_element_branding_auth_footer_links: ~ # noqa var-naming
matrix_client_element_branding_auth_header_logo_url: "{{ matrix_client_element_welcome_logo }}" # noqa var-naming matrix_client_element_branding_auth_header_logo_url: "{{ matrix_client_element_welcome_logo }}" # noqa var-naming


# URL to Wallpaper, shown in background of welcome page # URL to Wallpaper, shown in background of welcome page
matrix_client_element_branding_welcomeBackgroundUrl: ~ # noqa var-naming
matrix_client_element_branding_welcome_background_url: ~ # noqa var-naming


matrix_client_element_page_template_welcome_path: "{{ role_path }}/templates/welcome.html.j2" matrix_client_element_page_template_welcome_path: "{{ role_path }}/templates/welcome.html.j2"




+ 1
- 0
roles/custom/matrix-client-element/tasks/validate_config.yml Просмотреть файл

@@ -40,6 +40,7 @@
- {'old': 'matrix_client_element_settingDefaults_custom_themes', 'new': 'matrix_client_element_setting_defaults_custom_themes'} - {'old': 'matrix_client_element_settingDefaults_custom_themes', 'new': 'matrix_client_element_setting_defaults_custom_themes'}
- {'old': 'matrix_client_element_branding_authFooterLinks', 'new': 'matrix_client_element_branding_auth_footer_links'} - {'old': 'matrix_client_element_branding_authFooterLinks', 'new': 'matrix_client_element_branding_auth_footer_links'}
- {'old': 'matrix_client_element_branding_authHeaderLogoUrl', 'new': 'matrix_client_element_branding_auth_header_logo_url'} - {'old': 'matrix_client_element_branding_authHeaderLogoUrl', 'new': 'matrix_client_element_branding_auth_header_logo_url'}
- {'old': 'matrix_client_element_branding_welcomeBackgroundUrl', 'new': 'matrix_client_element_branding_welcome_background_url'}


- when: matrix_client_element_container_labels_traefik_enabled | bool - when: matrix_client_element_container_labels_traefik_enabled | bool
block: block:


+ 1
- 1
roles/custom/matrix-client-element/templates/config.json.j2 Просмотреть файл

@@ -44,6 +44,6 @@
"branding": { "branding": {
"auth_footer_links": {{ matrix_client_element_branding_auth_footer_links | to_json }}, "auth_footer_links": {{ matrix_client_element_branding_auth_footer_links | to_json }},
"auth_header_logo_url": {{ matrix_client_element_branding_auth_header_logo_url | to_json }}, "auth_header_logo_url": {{ matrix_client_element_branding_auth_header_logo_url | to_json }},
"welcomeBackgroundUrl": {{ matrix_client_element_branding_welcomeBackgroundUrl | to_json }}
"welcome_background_url": {{ matrix_client_element_branding_welcome_background_url | to_json }}
} }
} }

Загрузка…
Отмена
Сохранить