Skip to content
Snippets Groups Projects
Commit 463ef39a authored by François Agneray's avatar François Agneray
Browse files

Add spinner for download pending file

parent c68577f3
No related branches found
No related tags found
1 merge request!72Develop
Pipeline #8007 passed
Pipeline: anis-next

#8008

    ......@@ -3,7 +3,12 @@
    Files downloaded :
    <ul>
    <li *ngFor="let downloadFile of downloadedFiles">
    {{ downloadFile.fileName }} :
    {{ downloadFile.fileName }} :
    <ng-container *ngIf="downloadFile.state == 'PENDING'">
    <br>
    <span class="fas fa-circle-notch fa-spin"></span>
    <span class="sr-only">Loading...</span>
    </ng-container>
    <progressbar [value]="downloadFile.progress" [type]="getType(downloadFile.progress)" [animate]="true">{{ downloadFile.progress }}%</progressbar>
    </li>
    </ul>
    ......
    ......@@ -63,7 +63,8 @@ export const fileReducer = createReducer(
    ...state.downloadedFiles.filter(f => f.id !== fileId),
    {
    ...state.downloadedFiles.find(f => f.id === fileId),
    progress: progress
    progress: progress,
    state: 'IN_PROGRESS'
    }
    ]
    })),
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment