Cloud migration UI: Add migrate-to-cloud route (#83072)

* add migrate-to-cloud route

* fix chunk name

* gate route behind feature toggle

* update permission checks
This commit is contained in:
Ashley Harrison
2024-02-21 15:50:13 +00:00
committed by GitHub
parent e1edec02d0
commit c75502dd8c
7 changed files with 40 additions and 0 deletions

View File

@@ -118,6 +118,8 @@ export function getNavTitle(navId: string | undefined) {
return t('nav.server-settings.title', 'Settings');
case 'storage':
return t('nav.storage.title', 'Storage');
case 'migrate-to-cloud':
return t('nav.migrate-to-cloud.title', 'Migrate to Grafana Cloud');
case 'upgrading':
return t('nav.upgrading.title', 'Stats and license');
case 'monitoring':
@@ -248,6 +250,11 @@ export function getNavSubTitle(navId: string | undefined) {
return t('nav.server-settings.subtitle', 'View the settings defined in your Grafana config');
case 'storage':
return t('nav.storage.subtitle', 'Manage file storage');
case 'migrate-to-cloud':
return t(
'nav.migrate-to-cloud.subtitle',
'Copy data sources, dashboards, and alerts from this installation to a cloud stack'
);
case 'support-bundles':
return t('nav.support-bundles.subtitle', 'Download support bundles');
case 'admin':