Skip to content

Commit

Permalink
add required * indicator to message content/notif method
Browse files Browse the repository at this point in the history
  • Loading branch information
riahk committed Feb 3, 2021
1 parent 742d560 commit f945900
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,19 @@ const StyledSectionContainer = styled.div`
`;

const StyledSectionTitle = styled.div`
display: flex;
align-items: center;
margin: ${({ theme }) => theme.gridUnit * 2}px auto
${({ theme }) => theme.gridUnit * 4}px auto;
h4 {
margin: 0;
}
.required {
margin-left: ${({ theme }) => theme.gridUnit}px;
color: ${({ theme }) => theme.colors.error.base};
}
`;

const StyledSwitchContainer = styled.div`
Expand Down Expand Up @@ -1213,6 +1224,7 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
? t('Report schedule')
: t('Alert condition schedule')}
</h4>
<span className="required">*</span>
</StyledSectionTitle>
<AlertReportCronScheduler
value={
Expand Down Expand Up @@ -1282,6 +1294,7 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
<div className="column message">
<StyledSectionTitle>
<h4>{t('Message content')}</h4>
<span className="required">*</span>
</StyledSectionTitle>
<div className="inline-container add-margin">
<Radio.Group onChange={onContentTypeChange} value={contentType}>
Expand Down Expand Up @@ -1331,6 +1344,7 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
/>
<StyledSectionTitle>
<h4>{t('Notification method')}</h4>
<span className="required">*</span>
</StyledSectionTitle>
<NotificationMethod
setting={notificationSettings[0]}
Expand Down

0 comments on commit f945900

Please sign in to comment.