diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 12966d378..c42c9d6c5 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -118,6 +118,14 @@ const routes: Routes = [ path: 'change-password', loadChildren: () => import('./routes/password-change.routes').then((m) => m.PASSWORD_CHANGE_ROUTES), }, + { + path: 'hosted-databases', + pathMatch: 'full', + loadComponent: () => + import('./components/hosted-databases/hosted-databases.component').then((m) => m.HostedDatabasesComponent), + canActivate: [AuthGuard], + title: 'Hosted Databases | Rocketadmin', + }, { path: 'upgrade', loadComponent: () => import('./components/upgrade/upgrade.component').then((m) => m.UpgradeComponent), diff --git a/frontend/src/app/components/hosted-databases/hosted-database-delete-dialog/hosted-database-delete-dialog.component.css b/frontend/src/app/components/hosted-databases/hosted-database-delete-dialog/hosted-database-delete-dialog.component.css new file mode 100644 index 000000000..c91080bcf --- /dev/null +++ b/frontend/src/app/components/hosted-databases/hosted-database-delete-dialog/hosted-database-delete-dialog.component.css @@ -0,0 +1,3 @@ +.mat-mdc-dialog-content { + margin-bottom: -20px; +} diff --git a/frontend/src/app/components/hosted-databases/hosted-database-delete-dialog/hosted-database-delete-dialog.component.html b/frontend/src/app/components/hosted-databases/hosted-database-delete-dialog/hosted-database-delete-dialog.component.html new file mode 100644 index 000000000..e2a874d09 --- /dev/null +++ b/frontend/src/app/components/hosted-databases/hosted-database-delete-dialog/hosted-database-delete-dialog.component.html @@ -0,0 +1,15 @@ +
+ This will permanently delete the hosted database and all its data. + This action cannot be undone. +
++ This will generate a new password for the database. + Any existing connections using the current password will stop working. +
+{{ result()!.hostname }}
+ {{ result()!.port }}
+ {{ result()!.username }}
+ {{ result()!.password }}
+ + Save the new password now. It cannot be recovered from this screen later. +
++ Manage your hosted PostgreSQL database instances. +
+ +Loading databases...
+No hosted databases yet.
+Create one from the connections page.
+