90ecbdf522
This adds a Revert two-step button to the JobVersions component for not-current versions, which redirects to the overview on success. It checks the job version before and after reversion to mitigate the edge case where reverting to an otherwise-identical version has no effect, as discussed in #10337. It uses existing facilities for handling other errors and disabling the button when permissions are lacking.
11 lines
385 B
Handlebars
11 lines
385 B
Handlebars
{{#each this.annotatedVersions key="version.id" as |record|}}
|
|
{{#if record.meta.showDate}}
|
|
<li data-test-version-time class="timeline-note">
|
|
{{format-date record.version.submitTime}}
|
|
</li>
|
|
{{/if}}
|
|
<li data-test-version class="timeline-object">
|
|
<JobVersion @version={{record.version}} @verbose={{this.verbose}} @handleError={{@handleError}} />
|
|
</li>
|
|
{{/each}}
|