Skip to content

Commit

Permalink
Fixed styles in config heading
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Apr 21, 2022
1 parent 6884424 commit a8f1459
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/metadata/component/MetadataDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function MetadataDetail ({ children }) {
<Link to="/dashboard"><Translate value="action.dashboard">Dashboard</Translate></Link>
</li>
<li className="breadcrumb-item active" aria-current="page">
<span className="lead">
<span className="">
{ metadata.serviceProviderName || metadata.name }
</span>
</li>
Expand Down
12 changes: 7 additions & 5 deletions ui/src/app/metadata/component/MetadataHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useMetadataEntity } from '../hooks/api';
import { createNotificationAction, NotificationTypes, useNotificationDispatcher } from '../../notifications/hoc/Notifications';
import { useTranslator } from '../../i18n/hooks';
import { useMetadataLoader } from '../hoc/MetadataSelector';
import Form from 'react-bootstrap/Form';

export function MetadataHeader ({ showGroup, model, current = true, enabled = true, children, ...props }) {

Expand Down Expand Up @@ -57,9 +58,11 @@ export function MetadataHeader ({ showGroup, model, current = true, enabled = tr
{isAdmin && showGroup &&
<GroupsProvider>
{(groups, removeGroup, loadingGroups) =>
<div className="form-inline">
<label className="me-2" htmlFor={`group-${model.serviceProviderName}`}><Translate value="action.source-group">Group</Translate>: </label>
<select
<div className="form-inline" style={{maxWidth: '50%'}}>
<label className="me-2 mb-2" htmlFor={`group-${model.serviceProviderName}`}>
<Translate value="action.source-group">Group</Translate>:
</label>
<Form.Select
id={`group-${model.id}`}
name={`group-${model.id}`}
className="form-control form-control-sm"
Expand All @@ -71,8 +74,7 @@ export function MetadataHeader ({ showGroup, model, current = true, enabled = tr
{groups.map((g, ridx) => (
<option key={ridx} value={g.resourceId}>{g.name}</option>
))}
</select>

</Form.Select>
</div>
}
</GroupsProvider>
Expand Down
2 changes: 2 additions & 0 deletions ui/src/app/metadata/editor/MetadataEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export function MetadataEditor ({ restore, current, reload }) {

const { type, id, section } = useParams();

console.log(type, id);

const { update, loading } = useMetadataUpdater(`${ API_BASE_PATH }${getMetadataPath(type)}`, current, reload);

const notificationDispatch = useNotificationDispatcher();
Expand Down

0 comments on commit a8f1459

Please sign in to comment.