Skip to content

Commit

Permalink
Merge pull request #812 from Badsender-com/revert-808-disable-tags
Browse files Browse the repository at this point in the history
Revert "Disable tags call and filter in mailings-filters.vue component"
  • Loading branch information
FlorianGille committed Jul 17, 2024
2 parents d5565cd + e020d2c commit e18a77a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions packages/server/mailing/mailing.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,12 @@ async function bulkUpdate(req, res) {
return mailing.save();
});
await Promise.all(updateQueries);
const mailings = await Mailings.findForApi(mailingQuery);

const [mailings, tags] = await Promise.all([
Mailings.findForApi(mailingQuery),
Mailings.findTags(modelsUtils.addStrictGroupFilter(req.user, {})),
]);
res.json({
meta: { tags: [] },
meta: { tags },
items: mailings,
});
}
Expand Down
4 changes: 3 additions & 1 deletion packages/server/mailing/mailing.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ async function listMailingForWorkspaceOrFolder({
});
}

const tags = await findTags({ user });

return {
meta: { tags: [] },
meta: { tags },
items: mailings,
};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/routes/mailings/__partials/mailings-filters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ export default {
multiple
@input="(value) => handleFilterChange('templates', value)"
/>
<!-- <v-select
<v-select
:value="filters.tags"
:label="$t(`global.tags`)"
:items="tags"
multiple
@input="(value) => handleFilterChange('tags', value)"
/> -->
/>
<div class="bs-mailings-filters__date-picker">
<v-menu
v-model="pickerCreatedStart"
Expand Down

0 comments on commit e18a77a

Please sign in to comment.