mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Share Externally: Texts modification (#89640)
This commit is contained in:
@@ -75,10 +75,7 @@ export const ConfigEmailSharing = () => {
|
||||
>
|
||||
<Stack direction="row">
|
||||
<Input
|
||||
placeholder={t(
|
||||
'public-dashboard.email-sharing.recipient-email-placeholder',
|
||||
'Type in the recipient email address and press Enter'
|
||||
)}
|
||||
placeholder={t('public-dashboard.email-sharing.recipient-email-placeholder', 'Email')}
|
||||
autoCapitalize="none"
|
||||
loading={isAddEmailLoading}
|
||||
{...register('email', {
|
||||
|
||||
@@ -38,7 +38,7 @@ export const getAnyOneWithTheLinkShareOption = () => {
|
||||
label: t('public-dashboard.share-externally.public-share-type-option-label', 'Anyone with the link'),
|
||||
description: t(
|
||||
'public-dashboard.share-externally.public-share-type-option-description',
|
||||
'Anyone with the link can access'
|
||||
'Anyone with the link can access dashboard'
|
||||
),
|
||||
value: PublicDashboardShareType.PUBLIC,
|
||||
icon: 'globe',
|
||||
@@ -49,7 +49,7 @@ const getOnlySpecificPeopleShareOption = () => ({
|
||||
label: t('public-dashboard.share-externally.email-share-type-option-label', 'Only specific people'),
|
||||
description: t(
|
||||
'public-dashboard.share-externally.email-share-type-option-description',
|
||||
'Only people with access can open with the link'
|
||||
'Only people with the link can access dashboard'
|
||||
),
|
||||
value: PublicDashboardShareType.EMAIL,
|
||||
icon: 'users-alt',
|
||||
|
||||
@@ -69,29 +69,24 @@ export default function ShareTypeSelect({
|
||||
</Label>
|
||||
{isLoading && <Spinner />}
|
||||
</Stack>
|
||||
<Stack direction="row" gap={1} alignItems="center">
|
||||
{isEmailSharingEnabled() ? (
|
||||
<Select
|
||||
data-testid={selectors.shareTypeSelect}
|
||||
options={options}
|
||||
value={value}
|
||||
disabled={!hasWritePermissions}
|
||||
onChange={(v) => {
|
||||
setShareType(v);
|
||||
onUpdateShareType(v.value!);
|
||||
}}
|
||||
className={styles.select}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
{toIconName(anyOneWithTheLinkOpt.icon) && <Icon name={toIconName(anyOneWithTheLinkOpt.icon)!} />}
|
||||
<Text>{anyOneWithTheLinkOpt.label}</Text>
|
||||
</>
|
||||
)}
|
||||
<Text element="p" variant="bodySmall" color="disabled">
|
||||
<Trans i18nKey="public-dashboard.share-configuration.access-label">can access</Trans>
|
||||
</Text>
|
||||
</Stack>
|
||||
{isEmailSharingEnabled() ? (
|
||||
<Select
|
||||
data-testid={selectors.shareTypeSelect}
|
||||
options={options}
|
||||
value={value}
|
||||
disabled={!hasWritePermissions}
|
||||
onChange={(v) => {
|
||||
setShareType(v);
|
||||
onUpdateShareType(v.value!);
|
||||
}}
|
||||
className={styles.select}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
{toIconName(anyOneWithTheLinkOpt.icon) && <Icon name={toIconName(anyOneWithTheLinkOpt.icon)!} />}
|
||||
<Text>{anyOneWithTheLinkOpt.label}</Text>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ export function EmailSharingPricingAlert() {
|
||||
<Alert title="" severity="info" bottomSpacing={0}>
|
||||
<Stack justifyContent="space-between" gap={2} alignItems="center">
|
||||
<Trans i18nKey="public-dashboard.email-sharing.alert-text">
|
||||
Effective immediately, sharing public dashboards by email incurs a cost per active user. Going forward, you’ll
|
||||
be prompted for payment whenever you add new users to your dashboard.
|
||||
Sharing dashboards by email is billed per user for the duration of the 30-day token, regardless of how many
|
||||
dashboards are shared. Billing stops after 30 days unless you renew the token.
|
||||
</Trans>
|
||||
<Button variant="secondary" onClick={() => window.open(EMAIL_SHARING_URL, '_blank')} type="button">
|
||||
<Trans i18nKey="public-dashboard.email-sharing.learn-more-button">Learn more</Trans>
|
||||
|
||||
Reference in New Issue
Block a user