Skip to content

Commit

Permalink
add tenant exclusion standard
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Nov 15, 2023
1 parent 4527baa commit ea60ab2
Showing 1 changed file with 34 additions and 16 deletions.
50 changes: 34 additions & 16 deletions src/views/tenant/standards/ListAppliedStandards.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,22 +216,40 @@ const ListAppliedStandards = () => {
return (
<CForm onSubmit={handleSubmit}>
<hr />{' '}
{listStandardResults[0]?.appliedBy
? `This standard has been applied at ${new Date(
listStandardResults[0].appliedAt + 'Z',
).toLocaleDateString(undefined, {
year: 'numeric',
month: 'long',
day: 'numeric',
})} ${new Date(
listStandardResults[0].appliedAt + 'Z',
).toLocaleTimeString(undefined, {
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false,
})} by ${listStandardResults[0].appliedBy}`
: 'This tenant does not yet have a standard applied'}
<CCol>
{listStandardResults[0]?.appliedBy
? `This standard has been applied at ${new Date(
listStandardResults[0].appliedAt + 'Z',
).toLocaleDateString(undefined, {
year: 'numeric',
month: 'long',
day: 'numeric',
})} ${new Date(
listStandardResults[0].appliedAt + 'Z',
).toLocaleTimeString(undefined, {
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false,
})} by ${listStandardResults[0].appliedBy}`
: 'This tenant does not yet have a standard applied'}
</CCol>
{tenantDomain !== 'AllTenants' && (
<>
<hr />
<h5>Standard Settings</h5>
<hr />
<CRow className="mb-3" xs={{ cols: 1 }}>
<RFFCFormSwitch
name="standards.OverrideAllTenants"
label="Do not apply All Tenants standards to this tenant"
helpText={
'Exclude this standard from the All Tenants standard. This will only apply explicitly set standards to this tenant.'
}
/>
</CRow>
</>
)}
<hr />
<h5>Global Standards</h5>
<hr />
Expand Down

0 comments on commit ea60ab2

Please sign in to comment.