-
Notifications
You must be signed in to change notification settings - Fork 35
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
added previous_tags setting #306
added previous_tags setting #306
Conversation
@@ -543,6 +576,7 @@ export default { | |||
*/ | |||
async submit () | |||
{ | |||
// this.previousTags = (this.$store.state.litter.tags[this.id] || {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this or not? If its not needed it can be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we do. When you click the submit button, then it stores the tags you used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it meant to be commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got rid of it. My bad.
/* Whether to save the tags from a previous image */ | ||
$user->previous_tags = $request->previous_tags; | ||
|
||
$user->save(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also return a response and handle it
return [
'success' => true
];
.then(response => {
console.log('my_action', response);
if (response.data.success)
{
// Handle success eg show successful event notification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
this PR creates a setting for users to allow previous tags used in an image to appear on the current one.