Generate keys on origin create
With I removed the UI element that made key generation optional, but then forgot to actually generate the keys. This fixes that oversight.
@@ -139,6 +139,7 @@ export function createOrigin(body: object, token: string, isFirstOrigin = false,
type: SUCCESS,
}));
+ dispatch(generateOriginKeys(origin["name"], token));
callback(origin);
}).catch(error => {
dispatch(setCurrentOriginCreatingFlag(false));
