Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #256 #258

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68,211 changes: 68,210 additions & 1 deletion public/app.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions resources/js/screens/posts/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@
this.http().post('/api/posts/' + this.id, this.form).then(response => {
this.status = '';

// Refresh to updated tags
this.form.tags = response.data.entry.tags;

if (this.id == 'new') {
this.$router.push({name: 'post-edit', params: {id: this.form.id}})
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/PostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function store($id)
);

return response()->json([
'entry' => $entry,
'entry' => $entry->load('tags'),
]);
}

Expand Down