@@ -145,23 +145,43 @@ export const PublicDashboardListTable = () => {
145
145
{ ! isLoading && ! isError && ! ! paginatedPublicDashboards && (
146
146
< div >
147
147
{ 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
+ )
165
185
) : (
166
186
< >
167
187
< ul className = { styles . list } >
0 commit comments