コード例 #1
0
ファイル: actions.js プロジェクト: CknDev/stryve
export const togglePinnedContact = (store, contact_uuid) => {
	contacts.postPinContact(
		contact_uuid,
		token.get(),
		cb 		=> { store.dispatch(types.PIN_CONTACT_SUCCESS, cb) },
		errorCb => { store.dispatch(types.PIN_CONTACT_FAILURE, errorCb) }
	)
}
コード例 #2
0
ファイル: actions.js プロジェクト: CknDev/stryve
export const fetchContactEvents = (store, contact_uuid) => {
	contacts.getContactEvents(
		contact_uuid,
		25,
		token.get(),
		cb 		=> { store.dispatch(types.FETCH_CONTACT_EVENTS_SUCCESS, cb) },
		errorCb => { store.dispatch(types.FETCH_CONTACT_EVENTS_FAILURE, errorCb) }
	)
}
コード例 #3
0
ファイル: actions.js プロジェクト: CknDev/stryve
export const searchContacts = (store, query) => {
	setSearching(store, true)
	contacts.getSearchContacts(
		query,
		10,
		token.get(),
		cb 		=> { store.dispatch(types.SEARCH_CONTACTS_SUCCESS, cb) },
		errorCb => { store.dispatch(types.SEARCH_CONTACTS_FAILURE, errorCb) }
	)
}