This is an automated email from the ASF dual-hosted git repository. machristie pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/develop by this push: new 977903f4 AIRAVATA-3626 set string-input-editor to empty string when initial value is null 977903f4 is described below commit 977903f48545a97c6d78c428f424ca4c71a4b5fb Author: Marcus Christie <machris...@apache.org> AuthorDate: Fri Jun 10 15:34:45 2022 -0400 AIRAVATA-3626 set string-input-editor to empty string when initial value is null Also adding support for INTEGER and FLOAT types which also use string-input-editor. --- .../js/web-components/ExperimentEditor.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentEditor.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentEditor.vue index a119a961..e20e3e4f 100644 --- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentEditor.vue +++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentEditor.vue @@ -74,10 +74,13 @@ export default { for (const input of this.experiment.experimentInputs) { const slot = document.createElement("slot"); slot.setAttribute("name", input.name); - if (input.type.name === "STRING") { + if (["STRING", "INTEGER", "FLOAT"].includes(input.type.name)) { slot.textContent = `${input.name} `; const textInput = document.createElement("adpf-string-input-editor"); - textInput.setAttribute("value", input.value); + textInput.setAttribute( + "value", + input.value !== null ? input.value : "" + ); textInput.setAttribute("name", input.name); slot.appendChild(textInput); this.$refs[input.name][0].append(slot);