Skip to content

Commit

Permalink
Merge pull request #2729 from kris6673/hidden-rules
Browse files Browse the repository at this point in the history
Show/remove hidden mailbox rules too
  • Loading branch information
KelvinTegelaar authored Jul 26, 2024
2 parents f64a877 + d03b70e commit 0fe29d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/views/identity/administration/UserMailboxRuleList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const rowStyle = (row, rowIndex) => {
return style
}

export default function UserMailboxRuleList({ userId, tenantDomain, className = null }) {
export default function UserMailboxRuleList({ userId, userEmail, tenantDomain, className = null }) {
const formatter = (cell) => CellBoolean({ cell })
const columns = [
{
Expand Down Expand Up @@ -79,7 +79,7 @@ export default function UserMailboxRuleList({ userId, tenantDomain, className =
datatable={{
reportName: 'ListUserMailboxRules',
path: '/api/ListUserMailboxRules',
params: { tenantFilter: tenantDomain, userId },
params: { tenantFilter: tenantDomain, userId, userEmail },
columns,
keyField: 'id',
responsive: true,
Expand All @@ -93,6 +93,7 @@ export default function UserMailboxRuleList({ userId, tenantDomain, className =

UserMailboxRuleList.propTypes = {
userId: PropTypes.string.isRequired,
userEmail: PropTypes.string,
tenantDomain: PropTypes.string.isRequired,
className: PropTypes.string,
}
6 changes: 5 additions & 1 deletion src/views/identity/administration/ViewUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ const ViewUser = (props) => {
<UserSigninLogs userId={userId} tenantDomain={tenantDomain} />
</CippMasonryItem>
<CippMasonryItem size="triple">
<UserMailboxRuleList userId={userId} tenantDomain={tenantDomain} />
<UserMailboxRuleList
userId={userId}
tenantDomain={tenantDomain}
userEmail={userEmail}
/>
</CippMasonryItem>
</CippMasonry>
)}
Expand Down

0 comments on commit 0fe29d9

Please sign in to comment.