Skip to content
Snippets Groups Projects
Commit 8985010a authored by dcz's avatar dcz
Browse files

An additional constraint for change to the verify status.

parent 1e82fe0c
No related branches found
No related tags found
No related merge requests found
......@@ -583,10 +583,16 @@ Object.assign(LexicalUnitEdit, {
$.prompt(duplicate_popup);
},
changeUnifiedFrameStatusToReadyOrVerified() {
if (this.isSuperLeksykograf())
if (this.isSuperLeksykograf()) {
let hasBadContestedFrames = this.frames.find(frame => frame.status === 'B' || frame.status === 'C');
if (hasBadContestedFrames) {
alert(gettext("Przed zmianą statusu ramy zunifikowanej na 'Sprawdzoną', rama nie powinna posiadać niepowierdzonych ram slowala o statusie 'Niepasująca' lub 'Błędna'."));
} else {
this.changeUnifiedFrameStatusToReadyOrVerifiedByPath('change_unified_frame_status_to_verified_by_superleksykograf');
else
this.changeUnifiedFrameStatusToReadyOrVerifiedByPath('change_unified_frame_status_to_ready')
}
} else {
this.changeUnifiedFrameStatusToReadyOrVerifiedByPath('change_unified_frame_status_to_ready');
}
},
changeUnifiedFrameStatusToReadyOrVerifiedByPath(url_path) {
let foundNotVerifiedFrame = this.frames.find(frame => frame.status !== 'G' && frame.status !== 'S' && frame.status !== 'B' && frame.status !== 'C');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment