Vitor-Avila commented on code in PR #44992:
URL: https://github.com/apache/superset/pull/44992#discussion_r4207498574
##########
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##########
@@ -2327,310 +2613,461 @@ const AlertReportModal:
FunctionComponent<AlertReportModalProps> = ({
),
children: (
<>
- <StyledInputContainer>
- <div className="control-label">
- {t('Content type')}
- <span className="required">*</span>
- </div>
- <Select
- ariaLabel={t('Select content type')}
- onChange={onContentTypeChange}
- value={contentType}
- options={CONTENT_TYPE_OPTIONS}
- placeholder={t('Select content type')}
+ {dynamicExecutorEnabled && !isAdmin && (
+ <Alert
+ type={restrictedExecutor ? 'warning' : 'info'}
+ showIcon
+ message={
+ restrictedExecutor
+ ? t('Content and recipient edits are restricted')
+ : t('Content and permissions')
+ }
+ description={
+ restrictedExecutor ? (
+ <>
+ <p>
+ {t(
+ isReport
+ ? 'You can edit the name and schedule, but
changing the delivered content or recipients requires updating it to execute
with your permissions. Only admins can select other users.'
Review Comment:
Fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]