Skip to content

Asset creation screen shows "upload complete" when uploads fail #308

@jmuzina

Description

@jmuzina

The asset(s) created view displays "Upload complete" regardless of the actual upload result.

Steps to reproduce

  1. Create a situation that would cause an asset upload to fail; for example, terminating the database container while the UI is running.
  2. Attempt to upload a file.
  3. See that the upload fails, and the section title shows "Upload complete".

Expected results

The section title should reflect the actual result of the upload.

Actual behavior

The section title always shows "Upload complete".

Screenshot

Image

Context

The section title is statically set to "Upload complete" here:

<div class="p-strip is-shallow">
<div class="u-fixed-width">
<div class="p-section--shallow">
<h1 class="p-muted-heading">Upload complete</h1>
<hr class="p-rule" />
</div>
</div>

This template already has a failed variable in scope that we should be able to use to display a contextual title based on the state of the failed variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions