Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 29x 1x 1x 1x 1x 1x 1x | import {
SET_ALERT,
SET_SUBSCRIPTIONS,
SET_SUBSCRIPTIONS_LOADING,
SET_SUBSCRIPTIONS_ERROR,
SET_CURRENT_USER,
SET_CURRENT_USER_ERROR,
SET_ACCESS_TOKEN,
} from './mutation_types';
export default {
[SET_ALERT](state, { title, message, variant, linkUrl } = {}) {
state.alert = { title, message, variant, linkUrl };
},
[SET_SUBSCRIPTIONS](state, subscriptions = []) {
state.subscriptions = subscriptions;
},
[SET_SUBSCRIPTIONS_LOADING](state, subscriptionsLoading) {
state.subscriptionsLoading = subscriptionsLoading;
},
[SET_SUBSCRIPTIONS_ERROR](state, subscriptionsError) {
state.subscriptionsError = subscriptionsError;
},
[SET_CURRENT_USER](state, currentUser) {
state.currentUser = currentUser;
},
[SET_CURRENT_USER_ERROR](state, currentUserError) {
state.currentUserError = currentUserError;
},
[SET_ACCESS_TOKEN](state, accessToken) {
state.accessToken = accessToken;
},
};
|