Skip to content

Fix flyout extended information and incorrect wording #2841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions src/views/email-exchange/connectors/ConnectorList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,44 +20,46 @@ const Offcanvas = (row, rowIndex, formatExtraData) => {
<CippActionsOffcanvas
title="Extended Information"
extendedInfo={[
{ label: 'Created by', value: `${row.CreatedBy}` },
{ label: 'Last edit by', value: `${row.LastModifiedBy}` },
{ label: 'Description', value: `${row.Description}` },
{ label: 'Name', value: `${row.Name}` },
{ label: 'Comment', value: `${row.Comment}` },
{ label: 'State', value: `${row.Enabled}` },
{ label: 'Direction', value: `${row.cippconnectortype}` },
{ label: 'Connector Type', value: `${row.ConnectorType}` },
]}
actions={[
{
label: 'Create template based on rule',
label: 'Create template based on connector',
color: 'info',
modal: true,
icon: <FontAwesomeIcon icon={faBook} className="me-2" />,
modalBody: row,
modalType: 'POST',
modalUrl: `/api/AddExConnectorTemplate`,
modalMessage: 'Are you sure you want to create a template based on this rule?',
modalMessage: 'Are you sure you want to create a template based on this connector?',
},
{
label: 'Enable Rule',
label: 'Enable Connector',
color: 'info',
icon: <FontAwesomeIcon icon={faCheck} className="me-2" />,
modal: true,
modalUrl: `/api/EditExConnector?State=Enable&TenantFilter=${tenant.defaultDomainName}&GUID=${row.Guid}&Type=${row.cippconnectortype}`,
modalMessage: 'Are you sure you want to enable this rule?',
modalMessage: 'Are you sure you want to enable this connector?',
},
{
label: 'Disable Rule',
label: 'Disable Connector',
color: 'info',
icon: <FontAwesomeIcon icon={faBan} className="me-2" />,
modal: true,
modalUrl: `/api/EditExConnector?State=Disable&TenantFilter=${tenant.defaultDomainName}&GUID=${row.Guid}&Type=${row.cippconnectortype}`,
modalMessage: 'Are you sure you want to disable this rule?',
modalMessage: 'Are you sure you want to disable this connector?',
},
{
label: 'Delete Rule',
label: 'Delete Connector',
color: 'danger',
modal: true,
icon: <FontAwesomeIcon icon={faTrash} className="me-2" />,
modalUrl: `/api/RemoveExConnector?TenantFilter=${tenant.defaultDomainName}&GUID=${row.Guid}&Type=${row.cippconnectortype}`,
modalMessage: 'Are you sure you want to delete this rule?',
modalMessage: 'Are you sure you want to delete this connector?',
},
]}
placement="end"
Expand Down
Loading