Skip to content

Commit

Permalink
[7.x] Fix incorrect revisions status (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Jul 10, 2024
1 parent 2d01762 commit e738e51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/Publish/PublishForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default {
title: this.initialTitle,
values: _.clone(this.initialValues),
meta: _.clone(this.initialMeta),
isWorkingCopy: this.initialWorkingCopy,
isWorkingCopy: this.initialIsWorkingCopy,
error: null,
errors: {},
state: 'new',
Expand Down
1 change: 1 addition & 0 deletions resources/views/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
:initial-values='@json($values)'
:initial-meta='@json($meta)'
initial-permalink="{{ $permalink }}"
:initial-is-working-copy="{{ $str::bool($hasWorkingCopy) }}"
:initial-read-only="{{ $str::bool($readOnly) }}"
:breadcrumbs="{{ $breadcrumbs->toJson() }}"
:can-edit-blueprint="{{ Auth::user()->can('configure fields') ? 'true' : 'false' }}"
Expand Down
1 change: 1 addition & 0 deletions src/Http/Controllers/CP/ResourceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public function edit(EditRequest $request, Resource $resource, $model)
'canManagePublishState' => User::current()->can('edit', $resource),
'itemActions' => Action::for($model, ['resource' => $resource->handle(), 'view' => 'form']),
'revisionsEnabled' => $resource->revisionsEnabled(),
'hasWorkingCopy' => $model->hasWorkingCopy(),
];

if ($request->wantsJson()) {
Expand Down

0 comments on commit e738e51

Please sign in to comment.