Skip to content

Commit 167987f

Browse files
[6.x] Hide "Live Preview" button while live preview is active (#14866)
1 parent fae029d commit 167987f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

resources/js/components/entries/PublishForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export default {
457457
},
458458
459459
showLivePreviewButton() {
460-
return !this.readOnly && !this.isCreating && this.isBase && this.livePreviewUrl;
460+
return !this.isPreviewing && !this.readOnly && !this.isCreating && this.isBase && this.livePreviewUrl;
461461
},
462462
463463
showVisitUrlButton() {

resources/js/components/terms/PublishForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export default {
271271
},
272272
273273
showLivePreviewButton() {
274-
return !this.readOnly && !this.isCreating && this.isBase && this.livePreviewUrl && this.showVisitUrlButton;
274+
return !this.isPreviewing && !this.readOnly && !this.isCreating && this.isBase && this.livePreviewUrl && this.showVisitUrlButton;
275275
},
276276
277277
showVisitUrlButton() {

0 commit comments

Comments
 (0)