mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Client: async resources, make store reusable, move plugins and add getTaskFor getter (#8575)
Add library to manage async resource Make Store reusable for easier testing Move plugin to libs Add getTaskFor getter with tests
This commit is contained in:
@@ -130,14 +130,14 @@ $active-purple: #6133b4;
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { mapState, mapGetters } from '../store';
|
||||
import { mapState, mapGetters } from 'client/libs/store';
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
...mapGetters({
|
||||
userGems: 'user:gems',
|
||||
}),
|
||||
...mapState(['user']),
|
||||
...mapState({user: 'user.data'}),
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user