import { sortBy } from 'lodash';
import { Link } from 'react-router';
import Avatar from '../../../../components/ui/Avatar';
+import OrganizationIcon from '../../../../components/icons-components/OrganizationIcon';
import OrganizationLink from '../../../../components/ui/OrganizationLink';
import { translate } from '../../../../helpers/l10n';
</li>
{hasOrganizations && <li role="separator" className="divider" />}
{hasOrganizations && (
- <li className="dropdown-header spacer-left">{translate('my_organizations')}</li>
+ <li>
+ <Link to="/account/organizations" onClick={this.closeDropdown}>
+ {translate('my_organizations')}
+ </Link>
+ </li>
)}
{hasOrganizations &&
sortBy(organizations, org => org.name.toLowerCase()).map(organization => (
<li key={organization.key}>
<OrganizationLink organization={organization} onClick={this.closeDropdown}>
+ <OrganizationIcon />
<span className="spacer-left">{organization.name}</span>
</OrganizationLink>
</li>
className="divider"
role="separator"
/>
- <li
- className="dropdown-header spacer-left"
- >
- my_organizations
+ <li>
+ <Link
+ onClick={[Function]}
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to="/account/organizations"
+ >
+ my_organizations
+ </Link>
</li>
<li>
<OrganizationLink
}
}
>
+ <OrganizationIcon />
<span
className="spacer-left"
>
}
}
>
+ <OrganizationIcon />
<span
className="spacer-left"
>
}
}
>
+ <OrganizationIcon />
<span
className="spacer-left"
>
<footer className="modal-foot">
<div>
+ {this.state.loading && <i className="spinner spacer-right" />}
<button disabled={this.state.loading} type="submit">
- {this.state.loading && <i className="spinner little-spacer-right" />}
{translate('create')}
</button>
<button type="reset" className="button-link" onClick={this.closeForm}>
import React from 'react';
import OrganizationLink from '../../../components/ui/OrganizationLink';
/*:: import type { Organization } from '../../../store/organizations/duck'; */
+import { translate } from '../../../helpers/l10n';
/*::
type Props = {
<OrganizationLink organization={organization}>{organization.name}</OrganizationLink>
</h3>
- <div className="account-project-key">{organization.key}</div>
-
{!!organization.description && (
<div className="account-project-description">{organization.description}</div>
)}
+
+ <div className="account-project-key">
+ <span className="little-spacer-right">
+ {translate('key')}
+ {':'}
+ </span>
+ <input
+ onClick={event => event.currentTarget.select()}
+ readOnly={true}
+ type="text"
+ value={organization.key}
+ />
+ </div>
</div>
);
}