2019-03-01 09:51:54 -05:00
|
|
|
export const projectKeys = ['name', 'organizationName', 'organizationSlug', 'slug'];
|
|
|
|
|
|
|
|
export const transformFrontendSettings = ({ apiHost, enabled, token, selectedProject }) => {
|
|
|
|
const project = selectedProject
|
|
|
|
? {
|
|
|
|
slug: selectedProject.slug,
|
|
|
|
name: selectedProject.name,
|
|
|
|
organization_name: selectedProject.organizationName,
|
|
|
|
organization_slug: selectedProject.organizationSlug,
|
|
|
|
}
|
|
|
|
: null;
|
|
|
|
|
|
|
|
return { api_host: apiHost || null, enabled, token: token || null, project };
|
|
|
|
};
|
|
|
|
|
2020-02-03 04:08:42 -05:00
|
|
|
export const getDisplayName = project => `${project.organizationName} | ${project.slug}`;
|
2019-03-01 09:51:54 -05:00
|
|
|
|
|
|
|
export default () => {};
|