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

added previous_tags setting #306

Closed
wants to merge 7 commits into from
Closed

added previous_tags setting #306

wants to merge 7 commits into from

Conversation

JosephShepin
Copy link
Contributor

this PR creates a setting for users to allow previous tags used in an image to appear on the current one.

@JosephShepin JosephShepin marked this pull request as ready for review August 7, 2021 01:30
resources/js/components/Litter/AddTags.vue Show resolved Hide resolved
@@ -543,6 +576,7 @@ export default {
*/
async submit ()
{
// this.previousTags = (this.$store.state.litter.tags[this.id] || {});
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

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?

Copy link
Contributor Author

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.

resources/js/store/modules/user/actions.js Outdated Show resolved Hide resolved
resources/js/store/modules/user/mutations.js Show resolved Hide resolved
resources/js/views/general/Tag.vue Outdated Show resolved Hide resolved
resources/js/views/general/Tag.vue Outdated Show resolved Hide resolved
@xlcrr xlcrr changed the base branch from master to staging August 16, 2021 20:16
/* Whether to save the tags from a previous image */
$user->previous_tags = $request->previous_tags;

$user->save();
Copy link
Member

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
          

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

resources/js/components/Litter/AddTags.vue Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants