Skip to content
Snippets Groups Projects
Commit 3c9e969b authored by dcz's avatar dcz
Browse files

Lexicografs can not change unified frame after switching to ready status.

parent b5b25989
Branches
No related merge requests found
......@@ -1049,6 +1049,9 @@ Object.assign(LexicalUnitEdit, {
}
return slowal_frame_stastuses;
},
isReadOnly() {
return this.readOnly || (this.unified_frame.status === 'G' && !this.isSuperLeksykograf());
},
hideLexicalUnits() {
this.lexicalUnitsVisible = false;
},
......@@ -1187,7 +1190,7 @@ export default LexicalUnitEdit;
<template>
<div class="col h-100 px-0 pt-0 pb-0 overflow-auto" id="semantics-frames-pane">
<div :id="'semantics-unified-frame-pane' + (readOnly ? '-preview' : '')" class="col w-100 p-0 overflow-auto">
<table v-if="!readOnly && !isReadOnlyForSuperLeksykograf()" class="table-button-menu sticky-top" cellspacing="1">
<table v-if="!isReadOnly() && !isReadOnlyForSuperLeksykograf()" class="table-button-menu sticky-top" cellspacing="1">
<tr style="background-color: white;">
<td class="table-button-menu-td" id="change-title" @click="changeTitle" style="padding: 10px 15px 10px 15px; color: #000000;">Zmień nazwę</td>
<td class="table-button-menu-td" id="add-arg" @click="addArgument" style="padding: 10px 15px 10px 15px; color: #000000;">Dodaj argum.</td>
......@@ -1213,7 +1216,7 @@ export default LexicalUnitEdit;
</tr>
</table>
<table v-if="!readOnly && isReadOnlyForSuperLeksykograf()" class="table-button-menu sticky-top" style="width: 100px;" cellspacing="1">
<table v-if="!isReadOnly() && isReadOnlyForSuperLeksykograf()" class="table-button-menu sticky-top" style="width: 100px;" cellspacing="1">
<tr style="background-color: white;">
<td v-if="frames.length == 0 || isSuperLeksykograf()" id="delete-frame-ro" style="padding: 10px 15px 10px 15px; color: #000000;" @click="deleteUnifiedFrames">Usuń ramę</td>
</tr>
......@@ -1327,7 +1330,7 @@ export default LexicalUnitEdit;
</div>
</div>
<div :id="'semantics-slowal-frames-pane' + (readOnly ? '-preview' : '')" class="col w-100 p-0 overflow-auto">
<table v-if="!readOnly && unified_frame.id && !isReadOnlyForSuperLeksykograf()" class="table-button-menu sticky-top" cellspacing="1">
<table v-if="!isReadOnly() && unified_frame.id && !isReadOnlyForSuperLeksykograf()" class="table-button-menu sticky-top" cellspacing="1">
<tr style="background-color: white;">
<td id="wrong-frame" class="table-button-menu-td" style="padding: 10px 15px 10px 15px; color: #000000;" @click="!this.isSuperLeksykograf() ? change_slowal_frame_status('B') : this.active_slowal_frame && this.active_slowal_frame.status === 'B' ? slowal_frame_status_change_with_confirmation('frame_confirm_invalid') : change_slowal_frame_status('B')">{{createSlowalBadStatusButtonLabel()}}</td>
<td id="hide-slowal-frame" style="padding: 10px 15px 10px 15px; color: #000000;">
......@@ -1371,7 +1374,7 @@ export default LexicalUnitEdit;
@meaning-lu-selected="meaningLuSelected"
></meaning-component>
</div>
<div v-if="!readOnly && !isReadOnlyForSuperLeksykograf()" class="col px-0" style="
<div v-if="!isReadOnly() && !isReadOnlyForSuperLeksykograf()" class="col px-0" style="
max-width: 15px;">
<div class="close" style="
width: 15px;
......@@ -1397,7 +1400,7 @@ export default LexicalUnitEdit;
</div>
</div>
</div>
<div v-if="!readOnly && !isReadOnlyForSuperLeksykograf()" class="col pl-0 pt-4" style="max-width: 60px;">
<div v-if="!isReadOnly() && !isReadOnlyForSuperLeksykograf()" class="col pl-0 pt-4" style="max-width: 60px;">
<div class="row"></div>
<div class="row">
<div class="col">
......@@ -1436,7 +1439,7 @@ export default LexicalUnitEdit;
/>
</div>
</div>
<div v-if="!readOnly" class="col h-100 px-1 pt-0 pb-0 overflow-auto" style="padding-left: 0px!important; padding-right: 0px!important;" id="semantics-schemata-pane">
<div class="col h-100 px-1 pt-0 pb-0 overflow-auto" style="padding-left: 0px!important; padding-right: 0px!important;" id="semantics-schemata-pane">
<ul class="nav nav-pills nav-justified p-1" id="entryTabs" role="tablist">
<li
v-for="tab in right_pane_tabs"
......@@ -1459,7 +1462,7 @@ export default LexicalUnitEdit;
@schemata-selected="schemataSelected"
/>
</div>
<div v-if="right_pane_tab === 'frame_preview'" class="overflow-hidden" style="height: calc(100% - 43px)">
<div v-if="!isReadOnly() && right_pane_tab === 'frame_preview'" class="overflow-hidden" style="height: calc(100% - 43px)">
<unification-frame-preview
:key="currentPreviewedUnifiedFrameId"
:lexicalUnitEditComponent="LexicalUnitEdit"
......@@ -1468,6 +1471,6 @@ export default LexicalUnitEdit;
@change-preview-to-edit="swapUnifiedFrames"
:forceRefresh="internalForceRefresh" />
</div>
<div :class="right_pane_tab !== 'notes' && 'd-none'" id="notes-component"></div>
<div v-if="!isReadOnly()" :class="right_pane_tab !== 'notes' && 'd-none'" id="notes-component"></div>
</div>
</template>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment