Skip to content
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