Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
fixed: readonly status message is replaced by saved/failed-to-save me…
Browse files Browse the repository at this point in the history
…ssage though both should be shown, kobotoolbox#677
  • Loading branch information
MartijnR committed May 24, 2023
1 parent df24dbb commit dfdd756
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public/js/src/module/field-submission-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ class FieldSubmissionQueue {
*/
this._uploadStatus = {
init() {
const statusElementSelector =
'.fieldsubmission-status:not(.readonly)';
this.statusElements = document.querySelectorAll(
'.fieldsubmission-status'
statusElementSelector
);

if (!this.statusElements.length) {
const range = document.createRange();
const first = range.createContextualFragment(
Expand All @@ -58,7 +61,7 @@ class FieldSubmissionQueue {
formFooter.prepend(second);
}
this.statusElements = document.querySelectorAll(
'.fieldsubmission-status'
statusElementSelector
);
}
},
Expand Down

0 comments on commit dfdd756

Please sign in to comment.