diff --git a/ESSArch_Core/frontend/static/frontend/scripts/controllers/AgentModalInstanceCtrl.js b/ESSArch_Core/frontend/static/frontend/scripts/controllers/AgentModalInstanceCtrl.js index abc3adcf7..380a588fa 100644 --- a/ESSArch_Core/frontend/static/frontend/scripts/controllers/AgentModalInstanceCtrl.js +++ b/ESSArch_Core/frontend/static/frontend/scripts/controllers/AgentModalInstanceCtrl.js @@ -354,7 +354,6 @@ export default class AgentModalInstanceCtrl { }, refresh: function (search) { return $ctrl.getLanguages(search).then(function () { - this.options = $ctrl.options.language.choices; return $ctrl.options.language.choices; }); }, diff --git a/ESSArch_Core/frontend/static/frontend/scripts/controllers/ArchiveModalInstanceCtrl.js b/ESSArch_Core/frontend/static/frontend/scripts/controllers/ArchiveModalInstanceCtrl.js index 5744ce219..cbcb49a68 100644 --- a/ESSArch_Core/frontend/static/frontend/scripts/controllers/ArchiveModalInstanceCtrl.js +++ b/ESSArch_Core/frontend/static/frontend/scripts/controllers/ArchiveModalInstanceCtrl.js @@ -149,7 +149,6 @@ export default class ArchiveModalInstanceCtrl { $ctrl.initStructureSearch = null; } return $ctrl.getStructures(search).then(function () { - this.options = $ctrl.options.structures; return $ctrl.options.structures; }); }, @@ -178,7 +177,6 @@ export default class ArchiveModalInstanceCtrl { $ctrl.initAgentSearch = null; } return $ctrl.getAgents(search).then(function () { - this.options = $ctrl.options.agents; return $ctrl.options.agents; }); }, diff --git a/ESSArch_Core/frontend/static/frontend/scripts/services/structureName.js b/ESSArch_Core/frontend/static/frontend/scripts/services/structureName.js index 024694727..2ce374bbb 100644 --- a/ESSArch_Core/frontend/static/frontend/scripts/services/structureName.js +++ b/ESSArch_Core/frontend/static/frontend/scripts/services/structureName.js @@ -1,10 +1,11 @@ const StructureName = ($filter, $translate) => { function getNameWithVersion(structure) { - const versionTestructuret = $translate.instant('VERSION'); + if (!structure) return ''; + const versionText = $translate.instant('VERSION'); return ( structure.name + ' ' + - versionTestructuret + + versionText + ' ' + structure.version + (structure.start_date !== null || structure.end_date !== null @@ -15,7 +16,7 @@ const StructureName = ($filter, $translate) => { ); } return { - // getNameWithVersion: getNameWithVersion, + getNameWithVersion: getNameWithVersion, parseStructureNames: function (structures) { structures.forEach(function (structure) { structure.name_with_version = getNameWithVersion(structure); diff --git a/ESSArch_Core/frontend/static/frontend/styles/modules/step_task.scss b/ESSArch_Core/frontend/static/frontend/styles/modules/step_task.scss index c5247017d..1e36e33da 100644 --- a/ESSArch_Core/frontend/static/frontend/styles/modules/step_task.scss +++ b/ESSArch_Core/frontend/static/frontend/styles/modules/step_task.scss @@ -29,12 +29,20 @@ } } -.param-value { - word-break: normal; - pre { - overflow-x: scroll; - white-space: pre-wrap; - } +.result-table { + table-layout: fixed; + width: 100%; +} + +.result-table .result-value { + overflow: auto; +} + +.result-table .result-value pre { + max-width: 100%; + max-height: 300px; + overflow: auto; + white-space: pre; } .step-task-info { diff --git a/ESSArch_Core/frontend/static/frontend/views/modals/task_info_modal.html b/ESSArch_Core/frontend/static/frontend/views/modals/task_info_modal.html index 84014cfbf..acf493253 100644 --- a/ESSArch_Core/frontend/static/frontend/views/modals/task_info_modal.html +++ b/ESSArch_Core/frontend/static/frontend/views/modals/task_info_modal.html @@ -95,27 +95,24 @@
- +
-
- {{ "STATE_TREE.ARGUMENTS" | translate }}: - - - {{ $ctrl.getArgsString(currentStepTask.args_parsed) }} - {{'NO_ARGUMENTS' | translate}} - -
+ {{ "STATE_TREE.ARGUMENTS" | translate }}: + {{'NO_ARGUMENTS' | translate}}

+
+
{{ $ctrl.getArgsString(currentStepTask.args_parsed) }}
+ + {{ ("PARAMETERS" | translate) + ":" }} + {{'NO_PARAMETERS' | translate}}
- {{ ("PARAMETERS" | translate) + ":" }} - {{'NO_PARAMETERS' | translate}} - @@ -127,9 +124,9 @@ -
{{ key }} +
{{ value | json }}
+ {{ ("RESULT" | translate) + ":" }} - {{ currentStepTask.result }} +
{{ currentStepTask.result }}