mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
* WIP(groups): quickish wins * WIP(groups): two quick wins 1. Don't show task creation button if user is not leader or manager 2. Don't require JS confirm() for approving tasks * fix(group-plans): allow delete from options button * fix(group-plans): update tasksOrder when task deleted * fix(group-tasks): dismiss notification when user takes action * refactor(tasks): DRY out create button styling * fix(group-tasks): sync after claiming/unclaiming
13 lines
345 B
JavaScript
13 lines
345 B
JavaScript
export default {
|
|
methods: {
|
|
async sync () {
|
|
this.$root.$emit('habitica::resync-requested');
|
|
await Promise.all([
|
|
this.$store.dispatch('user:fetch', {forceLoad: true}),
|
|
this.$store.dispatch('tasks:fetchUserTasks', {forceLoad: true}),
|
|
]);
|
|
this.$root.$emit('habitica::resync-completed');
|
|
},
|
|
},
|
|
};
|