Skip to content

Commit a2de893

Browse files
authoredAug 26, 2024
ShareModal: Change public dashboard text to shared dashboard (grafana#92327)
* update text * update link
1 parent 7623a84 commit a2de893

File tree

3 files changed

+45
-17
lines changed

3 files changed

+45
-17
lines changed
 

‎public/app/features/manage-dashboards/components/PublicDashboardListTable/PublicDashboardListTable.tsx

+37-17
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,43 @@ export const PublicDashboardListTable = () => {
145145
{!isLoading && !isError && !!paginatedPublicDashboards && (
146146
<div>
147147
{paginatedPublicDashboards.publicDashboards.length === 0 ? (
148-
<EmptyState
149-
variant="call-to-action"
150-
message={t(
151-
'public-dashboard-list.empty-state.message',
152-
"You haven't created any public dashboards yet"
153-
)}
154-
>
155-
<Trans i18nKey="public-dashboard-list.empty-state.more-info">
156-
Create a public dashboard from any existing dashboard through the <b>Share</b> modal.{' '}
157-
<TextLink
158-
external
159-
href="https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/#make-a-dashboard-public"
160-
>
161-
Learn more
162-
</TextLink>
163-
</Trans>
164-
</EmptyState>
148+
config.featureToggles.newDashboardSharingComponent ? (
149+
<EmptyState
150+
variant="call-to-action"
151+
message={t(
152+
'shared-dashboard-list.empty-state.message',
153+
"You haven't created any shared dashboards yet"
154+
)}
155+
>
156+
<Trans i18nKey="shared-dashboard-list.empty-state.more-info">
157+
Create a shared dashboard from any existing dashboard through the <b>Share</b> modal.{' '}
158+
<TextLink
159+
external
160+
href="https://grafana.com/docs/grafana/latest/dashboards/share-dashboards-panels/shared-dashboards"
161+
>
162+
Learn more
163+
</TextLink>
164+
</Trans>
165+
</EmptyState>
166+
) : (
167+
<EmptyState
168+
variant="call-to-action"
169+
message={t(
170+
'public-dashboard-list.empty-state.message',
171+
"You haven't created any public dashboards yet"
172+
)}
173+
>
174+
<Trans i18nKey="public-dashboard-list.empty-state.more-info">
175+
Create a public dashboard from any existing dashboard through the <b>Share</b> modal.{' '}
176+
<TextLink
177+
external
178+
href="https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/#make-a-dashboard-public"
179+
>
180+
Learn more
181+
</TextLink>
182+
</Trans>
183+
</EmptyState>
184+
)
165185
) : (
166186
<>
167187
<ul className={styles.list}>

‎public/locales/en-US/grafana.json

+4
Original file line numberDiff line numberDiff line change
@@ -2350,6 +2350,10 @@
23502350
"revoke-button-tooltip": "Revoke access",
23512351
"view-button-tooltip": "View shared dashboard"
23522352
},
2353+
"empty-state": {
2354+
"message": "You haven't created any shared dashboards yet",
2355+
"more-info": "Create a shared dashboard from any existing dashboard through the <1>Share</1> modal. <4>Learn more</4>"
2356+
},
23532357
"toggle": {
23542358
"pause-sharing-toggle-text": "Pause access"
23552359
}

‎public/locales/pseudo-LOCALE/grafana.json

+4
Original file line numberDiff line numberDiff line change
@@ -2350,6 +2350,10 @@
23502350
"revoke-button-tooltip": "Ŗęvőĸę äččęşş",
23512351
"view-button-tooltip": "Vįęŵ şĥäřęđ đäşĥþőäřđ"
23522352
},
2353+
"empty-state": {
2354+
"message": "Ÿőū ĥävęʼn'ŧ čřęäŧęđ äʼny şĥäřęđ đäşĥþőäřđş yęŧ",
2355+
"more-info": "Cřęäŧę ä şĥäřęđ đäşĥþőäřđ ƒřőm äʼny ęχįşŧįʼnģ đäşĥþőäřđ ŧĥřőūģĥ ŧĥę <1>Ŝĥäřę</1> mőđäľ. <4>Ŀęäřʼn mőřę</4>"
2356+
},
23532357
"toggle": {
23542358
"pause-sharing-toggle-text": "Päūşę äččęşş"
23552359
}

0 commit comments

Comments
 (0)
Failed to load comments.