Skip to content
Snippets Groups Projects
Commit 7c1d553d authored by dcz's avatar dcz
Browse files

Show/hide verified frames

parent 5b661f80
Branches
Tags
No related merge requests found
...@@ -83,6 +83,7 @@ Object.assign(LexicalUnitEdit, { ...@@ -83,6 +83,7 @@ Object.assign(LexicalUnitEdit, {
internalForceRefresh: this.forceRefresh, internalForceRefresh: this.forceRefresh,
statusButtonTitle: '', statusButtonTitle: '',
active_slowal_frame: null, active_slowal_frame: null,
showVerifiedFrames: false
} }
}, },
components: {InfoTooltip, Spinner, FramePreview}, components: {InfoTooltip, Spinner, FramePreview},
...@@ -688,6 +689,9 @@ Object.assign(LexicalUnitEdit, { ...@@ -688,6 +689,9 @@ Object.assign(LexicalUnitEdit, {
changePreviewToEditClick () { changePreviewToEditClick () {
this.$emit("changePreviewToEdit", this.unified_frame.id); this.$emit("changePreviewToEdit", this.unified_frame.id);
}, },
changeShowVerifiedFrames (val) {
this.showVerifiedFrames = val;
},
}, },
mounted() { mounted() {
this.changeStatusButtonTitleToDefault(); this.changeStatusButtonTitleToDefault();
...@@ -818,7 +822,7 @@ Object.assign(LexicalUnitEdit, { ...@@ -818,7 +822,7 @@ Object.assign(LexicalUnitEdit, {
> >
Rozdziel Rozdziel
</td> </td>
<td id="hide-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;">Ukryj</td> <td id="hide-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;" @click="changeShowVerifiedFrames(false)">Ukryj</td>
<td id="ready-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;" @click="change_slowal_frame_status">{{ statusButtonTitle }}</td> <td id="ready-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;" @click="change_slowal_frame_status">{{ statusButtonTitle }}</td>
<td id="filter-slowal-frames" style="padding: 10px 15px 10px 15px; color: #000000;">Filtruj</td> <td id="filter-slowal-frames" style="padding: 10px 15px 10px 15px; color: #000000;">Filtruj</td>
</tr> </tr>
...@@ -830,7 +834,7 @@ Object.assign(LexicalUnitEdit, { ...@@ -830,7 +834,7 @@ Object.assign(LexicalUnitEdit, {
@click="extract_frame_to_preview_frame()"> @click="extract_frame_to_preview_frame()">
Przerzuć Przerzuć
</td> </td>
<td id="show-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;"> <td id="show-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;" @click="changeShowVerifiedFrames(true)">
Pokaż Pokaż
</td> </td>
<td id="reollback-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;"> <td id="reollback-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;">
...@@ -840,9 +844,10 @@ Object.assign(LexicalUnitEdit, { ...@@ -840,9 +844,10 @@ Object.assign(LexicalUnitEdit, {
</tr> </tr>
</table> </table>
<div id="semantics-frames"> <div id="semantics-frames">
<div v-for="frame in frames"
:key="frame.id">
<table class="table m-0 table-borderless border border-secondary text-dark" <table class="table m-0 table-borderless border border-secondary text-dark"
v-for="frame in frames" v-if="!isFrameVerified(frame) || showVerifiedFrames"
:key="frame.id"
> >
<tbody> <tbody>
<tr> <tr>
...@@ -855,17 +860,19 @@ Object.assign(LexicalUnitEdit, { ...@@ -855,17 +860,19 @@ Object.assign(LexicalUnitEdit, {
</th> </th>
<th scope="row"> <th scope="row">
<div v-if="!readOnly"> <div v-if="!readOnly">
<label v-bind:for="frame.id"> <div v-if="isFrameVerified(frame)">
<div>
<input <input
type="checkbox" type="checkbox"
:checked="isFrameVerified(frame)" :checked="isFrameVerified(frame)"
class="custom-control custom-checkbox" class="custom-control custom-checkbox"
disabled="disabled"
> >
</div> </div>
</label>
<br><br> <br><br>
<a href="#" class="btn btn-sm btn-dark" role="button" @click="change_slowal2unified_frame_argument_mapping(frame.id)">Z</a> <button v-if="!isFrameVerified(frame)"
class="btn btn-sm btn-dark" role="button"
@click="change_slowal2unified_frame_argument_mapping(frame.id)"
>Z</button>
</div> </div>
</th> </th>
</tr> </tr>
...@@ -873,6 +880,7 @@ Object.assign(LexicalUnitEdit, { ...@@ -873,6 +880,7 @@ Object.assign(LexicalUnitEdit, {
</table> </table>
</div> </div>
</div> </div>
</div>
<div v-if="!readOnly" class="col h-100 px-1 pt-0 pb-0 overflow-auto" id="semantics-schemata-pane"> <div v-if="!readOnly" class="col h-100 px-1 pt-0 pb-0 overflow-auto" id="semantics-schemata-pane">
<ul class="nav nav-pills nav-justified p-1" id="entryTabs" role="tablist"> <ul class="nav nav-pills nav-justified p-1" id="entryTabs" role="tablist">
<li <li
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment