1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-23 20:07:40 +02:00
unleash.unleash/frontend/src/store/user/actions.js
ivaosthu 67bdb16659 Show a dialog if the username cookie is not set.
This is used by unleash server to show who changes what.
By making this a required input allow us to make sure
it is always set.
2016-11-24 21:32:29 +01:00

12 lines
245 B
JavaScript

export const USER_UPDATE_USERNAME = 'USER_UPDATE_USERNAME';
export const USER_SAVE = 'USER_SAVE';
export const updateUserName = (value) => ({
type: USER_UPDATE_USERNAME,
value,
});
export const save = () => ({
type: USER_SAVE,
});