Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
},
Expand Down Expand Up @@ -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;
});
},
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,24 @@
</div>

<br />
<table class="table">
<table class="table result-table">
<tbody>
<tr>
<td>
<div style="max-height: 300px; overflow-y: auto">
<b>{{ "STATE_TREE.ARGUMENTS" | translate }}:</b>
<table class="table">
<tbody>
{{ $ctrl.getArgsString(currentStepTask.args_parsed) }}
<span ng-if="currentStepTask.args_parsed.length === 0"> {{'NO_ARGUMENTS' | translate}} </span>
</tbody>
</table>
<b>{{ "STATE_TREE.ARGUMENTS" | translate }}:</b>
<span ng-if="currentStepTask.args_parsed.length === 0"> {{'NO_ARGUMENTS' | translate}} <br /><br /></span>
<div ng-if="currentStepTask.args_parsed.length > 0">
<pre>{{ $ctrl.getArgsString(currentStepTask.args_parsed) }}</pre>
</div>

<b>{{ ("PARAMETERS" | translate) + ":" }}</b>
<span ng-if="angular.equals(currentStepTask.params_parsed, {})"> {{'NO_PARAMETERS' | translate}} </span>
<div style="max-height: 300px; overflow-y: auto">
<b>{{ ("PARAMETERS" | translate) + ":" }}</b>
<span ng-if="angular.equals(currentStepTask.params_parsed, {})"> {{'NO_PARAMETERS' | translate}} </span>
<table class="table">
<tbody>
<tr ng-repeat="(key, value) in currentStepTask.params_parsed track by $index">
<td>{{ key }}</td>
<td class="param-value">
<td class="result-value">
<pre>{{ value | json }}</pre>
</td>
</tr>
Expand All @@ -127,9 +124,9 @@
</tbody>
<tbody>
<tr ng-if="currentStepTask.status == 'SUCCESS'">
<td>
<td class="result-value">
<b>{{ ("RESULT" | translate) + ":" }}</b>
{{ currentStepTask.result }}
<pre>{{ currentStepTask.result }}</pre>
</td>
</tr>
<tr
Expand Down
Loading