Skip to content
Snippets Groups Projects
Commit 8cdf1d6c authored by dcz's avatar dcz
Browse files

Show a duplicated frame in the preview tab juts after duplication action.

parent c38c99d4
No related branches found
No related tags found
No related merge requests found
...@@ -580,6 +580,7 @@ Object.assign(LexicalUnitEdit, { ...@@ -580,6 +580,7 @@ Object.assign(LexicalUnitEdit, {
show_info('Zunifikowana rama została zduplikowana.'); show_info('Zunifikowana rama została zduplikowana.');
this.currentPreviewedUnifiedFrameId = response.unified_frame_id; this.currentPreviewedUnifiedFrameId = response.unified_frame_id;
this.$emit('refreshEntriesList'); this.$emit('refreshEntriesList');
this.internalForceRefresh += 1;
$.prompt.close(); $.prompt.close();
}.bind(this), }.bind(this),
error: function (request, errorType, errorMessage) { error: function (request, errorType, errorMessage) {
......
...@@ -10,11 +10,18 @@ export default { ...@@ -10,11 +10,18 @@ export default {
}, },
data () { data () {
return { return {
unifiedFrameId: this.initialUnifiedFrameId unifiedFrameId: this.initialUnifiedFrameId,
unificationEntriesListRefreshKey: 1,
}; };
}, },
components: {UnificationSwitchableList}, components: {UnificationSwitchableList},
emits: ['changeFrame', 'refreshEntriesList'], emits: ['changeFrame', 'refreshEntriesList'],
watch: {
initialUnifiedFrameId(newVal, oldVal) {
this.unifiedFrameId = newVal;
this.unificationEntriesListRefreshKey++
}
},
methods: { methods: {
unifiedFrameSelected (unifiedFrameId) { unifiedFrameSelected (unifiedFrameId) {
this.unifiedFrameId = unifiedFrameId; this.unifiedFrameId = unifiedFrameId;
...@@ -54,6 +61,7 @@ export default { ...@@ -54,6 +61,7 @@ export default {
</div> </div>
<div class="col h-100 pl-1 pt-0 pb-0 overflow-auto" id="frame-preview-right-pane"> <div class="col h-100 pl-1 pt-0 pb-0 overflow-auto" id="frame-preview-right-pane">
<unification-switchable-list <unification-switchable-list
:unificationEntriesListRefreshKey="unificationEntriesListRefreshKey"
@unified-frame-selected="unifiedFrameSelected" @unified-frame-selected="unifiedFrameSelected"
/> />
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment