You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bb...@apache.org on 2021/11/04 20:49:46 UTC

[airflow] branch main updated: Fix field relabeling when switching between conn types (#19411)

This is an automated email from the ASF dual-hosted git repository.

bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e99c14e  Fix field relabeling when switching between conn types (#19411)
e99c14e is described below

commit e99c14e76c28890f1493ed9804154f1184ae85e4
Author: Josh Fell <48...@users.noreply.github.com>
AuthorDate: Thu Nov 4 16:49:20 2021 -0400

    Fix field relabeling when switching between conn types (#19411)
---
 airflow/www/static/js/connection_form.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/www/static/js/connection_form.js b/airflow/www/static/js/connection_form.js
index 155169f..d2859f8 100644
--- a/airflow/www/static/js/connection_form.js
+++ b/airflow/www/static/js/connection_form.js
@@ -67,7 +67,7 @@ function getControlsContainer() {
    * well-known state during the change of connection types.
    */
 function restoreFieldBehaviours() {
-  Array.from(document.querySelectorAll('label[data-origText]')).forEach((elem) => {
+  Array.from(document.querySelectorAll('label[data-orig-text]')).forEach((elem) => {
     elem.innerText = elem.dataset.origText;
     delete elem.dataset.origText;
   });