bbovenzi commented on code in PR #25731:
URL: https://github.com/apache/airflow/pull/25731#discussion_r946233524
##########
airflow/www/templates/airflow/grid.html:
##########
@@ -42,6 +42,7 @@
const stateColors = {{ state_color_mapping|tojson }};
const autoRefreshInterval = {{ auto_refresh_interval }};
const defaultDagRunDisplayNumber = {{ default_dag_run_display_number }};
+ const defaultWrap = {{ default_wrap|tojson }};
Review Comment:
Actually, we should put this in a `<meta>` tag vs directly accessing here.
and then in the js file we can call `const defaultWrap =
getMetaValue('default_wrap') === 'True';`
##########
airflow/www/templates/airflow/grid.html:
##########
@@ -42,6 +42,7 @@
const stateColors = {{ state_color_mapping|tojson }};
const autoRefreshInterval = {{ auto_refresh_interval }};
const defaultDagRunDisplayNumber = {{ default_dag_run_display_number }};
+ const defaultWrap = {{ default_wrap|tojson }};
Review Comment:
Actually, we should put this in a `<meta>` tag vs directly accessing here.
and then in the js file we can call ```const defaultWrap =
getMetaValue('default_wrap') === 'True';```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]