Files
habitica/website/client/store/actions/quests.js
T
Keith Holliday aee21edd5f [WIP] Began adding tavern and party (#8814)
* Began adding tavern and party

* Fixed routing conflicts and tavern constant

* Updated button styles

* Added not on quest block

* Added no challenge block

* Began adding quest details

* Began updating group create modal to have party info

* Added create party modal

* Added share userid menu

* Began adding toggle

* Finished toggle styles

* Added start quest modal

* Ported over party ctrl code

* Finished porting over party ctrl code

* Added more quest actions

* Added own quests modal and quest modal details

* Fixed member modal styles and icons

* Added many random style updates

* Small text align fix

* Removed extra update

* Removed config and extra key

* Removed client string extras
2017-06-27 14:02:55 -06:00

17 lines
420 B
JavaScript

import axios from 'axios';
// export async function initQuest (store) {
// }
export async function sendAction (store, payload) {
// Analytics.updateUser({
// partyID: party._id,
// partySize: party.memberCount
// });
let response = await axios.post(`/api/v3/groups/${payload.groupId}/${payload.action}`);
// @TODO: Update user?
// User.sync();
return response.data.quest || response.data.data;
}