Skip to content

Commit

Permalink
Merge pull request ceph#50299 from rhcs-dashboard/fix-broken-styles-crud
Browse files Browse the repository at this point in the history
mgr/dashboard: minor fixes to crud form UI

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Pere Diaz Bou <[email protected]>
  • Loading branch information
nizamial09 authored Feb 28, 2023
2 parents a36ad05 + 930abb7 commit ed0e876
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pybind/mgr/dashboard/controllers/_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def to_dict(self):
'displayFlex': True,
'htmlClass': 'd-flex justify-content-end mb-0',
'items': [
{"type": "cancel", "style": self.cancel_style, 'htmlClass': 'mr-2'},
{"type": "cancel", "style": self.cancel_style, 'htmlClass': 'me-2'},
{"type": "submit", "style": self.submit_style, "title": self.action},
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/pybind/mgr/dashboard/controllers/ceph_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def user_create(_, user_entity: str, capabilities: List[Cap]):
create_cap_container = ArrayHorizontalContainer('Capabilities', 'capabilities',
label_html_class='hidden cd-header mt-1', fields=[
FormField('Entity', 'entity',
field_type=str, html_class='mr-3'),
field_type=str, html_class='me-3'),
FormField('Entity Capabilities',
'cap', field_type=str)
])
Expand Down
8 changes: 8 additions & 0 deletions src/pybind/mgr/dashboard/frontend/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,12 @@ json-schema-form {
.ng-touched.ng-valid {
@extend .is-valid;
}

.close {
@extend .btn-close;

span {
display: none;
}
}
}

0 comments on commit ed0e876

Please sign in to comment.