diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index a3a881061..baed5e65b 100644 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -344,6 +344,20 @@ public function togglePrivacy (Request $request) $user->save(); } + /** + * Toggle a Users tagging settings + */ + public function toggleTagging (Request $request) + { + $user = Auth::user(); + + /* Whether to save the tags from a previous image */ + $user->previous_tags = $request->previous_tags; + + $user->save(); + return [ 'success' => true ]; + } + /** * Log the user out */ diff --git a/resources/js/components/Litter/AddTags.vue b/resources/js/components/Litter/AddTags.vue index e5ad051b8..1037dd9f8 100644 --- a/resources/js/components/Litter/AddTags.vue +++ b/resources/js/components/Litter/AddTags.vue @@ -63,7 +63,6 @@ v-click-outside="clickOutsideTag" /> -