-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
The asset(s) created view displays "Upload complete" regardless of the actual upload result.
Steps to reproduce
- Create a situation that would cause an asset upload to fail; for example, terminating the database container while the UI is running.
- Attempt to upload a file.
- 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
Context
The section title is statically set to "Upload complete" here:
assets.ubuntu.com/templates/created.html
Lines 7 to 13 in 29a31e1
| <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
Labels
No labels