Skip to content

Commit

Permalink
mgr/dashboard: minor fixes to crud form UI
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/58864
Signed-off-by: Nizamudeen A <[email protected]>
  • Loading branch information
nizamial09 committed Feb 28, 2023
1 parent 01ad87e commit 930abb7
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 930abb7

Please sign in to comment.