diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts
index db710e9a2..2d65c8d02 100644
--- a/frontend/src/app/app-routing.module.ts
+++ b/frontend/src/app/app-routing.module.ts
@@ -40,12 +40,12 @@ const routes: Routes = [
{path: 'external/user/email/verify/:verification-token', component: EmailVerificationComponent, title: 'Email verification | Rocketadmin'},
{path: 'external/user/email/change/verify/:change-token', component: EmailChangeComponent, title: 'Email updating | Rocketadmin'},
{path: 'deleted', component: UserDeletedSuccessComponent, title: 'User deleted | Rocketadmin'},
- {path: 'connect-db', component: ConnectDBComponent, canActivate: [AuthGuard], title: 'Add new database | Rocketadmin'},
- {path: 'connections-list', component: ConnectionsListComponent, canActivate: [AuthGuard], title: 'Connections | Rocketadmin'},
- {path: 'user-settings', component: UserSettingsComponent, canActivate: [AuthGuard], title: 'User settings | Rocketadmin'},
+ {path: 'connect-db', component: ConnectDBComponent, canActivate: [AuthGuard]},
+ {path: 'connections-list', component: ConnectionsListComponent, canActivate: [AuthGuard]},
+ {path: 'user-settings', component: UserSettingsComponent, canActivate: [AuthGuard]},
// company routes have to be in this specific order
{path: 'company/:company-id/verify/:verification-token', pathMatch: 'full', component: CompanyMemberInvitationComponent, title: 'Invitation | Rocketadmin'},
- {path: 'company', pathMatch: 'full', component: CompanyComponent, title: 'Company settings | Rocketadmin', canActivate: [AuthGuard]},
+ {path: 'company', pathMatch: 'full', component: CompanyComponent, canActivate: [AuthGuard]},
{path: 'change-password', component: PasswordChangeComponent, canActivate: [AuthGuard]},
{path: 'upgrade', component: UpgradeComponent, canActivate: [AuthGuard], title: 'Upgrade | Rocketadmin'},
{path: 'upgrade/payment', component: PaymentFormComponent, canActivate: [AuthGuard], title: 'Payment | Rocketadmin'},
diff --git a/frontend/src/app/app.component.spec.ts b/frontend/src/app/app.component.spec.ts
index 391d76b3e..d175be3d5 100644
--- a/frontend/src/app/app.component.spec.ts
+++ b/frontend/src/app/app.component.spec.ts
@@ -244,6 +244,8 @@ describe('AppComponent', () => {
});
it('should handle user login flow when cast emits user with expires', fakeAsync(() => {
+ mockCompanyService.getWhiteLabelProperties.and.returnValue(of({logo: '', favicon: ''}));
+
const expirationDate = new Date(Date.now() + 10_000); // 10s from now
app['currentFeatureNotificationId'] = 'some-id';
diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts
index 797e18700..d731777ca 100644
--- a/frontend/src/app/app.component.ts
+++ b/frontend/src/app/app.component.ts
@@ -260,8 +260,6 @@ export class AppComponent {
document.head.appendChild(favicon16);
document.head.appendChild(favicon32);
}
-
- // this.whiteLabelSettingsLoaded = true;
})
this._uiSettings.getUiSettings().subscribe(settings => {
this.isFeatureNotificationShown = (settings?.globalSettings?.lastFeatureNotificationId !== this.currentFeatureNotificationId)
diff --git a/frontend/src/app/components/audit/audit.component.ts b/frontend/src/app/components/audit/audit.component.ts
index 8a1303028..78f2f374c 100644
--- a/frontend/src/app/components/audit/audit.component.ts
+++ b/frontend/src/app/components/audit/audit.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
+import { Component, OnInit, ViewChild } from '@angular/core';
import { AsyncPipe, NgClass, NgForOf, NgIf } from '@angular/common';
import { Subscription, merge } from 'rxjs';
@@ -27,6 +27,7 @@ import { normalizeTableName } from 'src/app/lib/normalize';
import { tap } from 'rxjs/operators';
import { BannerComponent } from '../ui-components/banner/banner.component';
import { PlaceholderTableDataComponent } from '../skeletons/placeholder-table-data/placeholder-table-data.component';
+import { CompanyService } from 'src/app/services/company.service';
@Component({
selector: 'app-audit',
@@ -50,7 +51,7 @@ import { PlaceholderTableDataComponent } from '../skeletons/placeholder-table-da
templateUrl: './audit.component.html',
styleUrls: ['./audit.component.css']
})
-export class AuditComponent implements OnInit, OnDestroy {
+export class AuditComponent implements OnInit {
public isSaas = (environment as any).saas;
public connectionID: string;
public accesLevel: string;
@@ -73,6 +74,7 @@ export class AuditComponent implements OnInit, OnDestroy {
private _connections: ConnectionsService,
private _tables: TablesService,
private _users: UsersService,
+ private _companyService: CompanyService,
public dialog: MatDialog,
private title: Title
) { }
@@ -89,7 +91,9 @@ export class AuditComponent implements OnInit, OnDestroy {
ngOnInit(): void {
this.getTitleSubscription = this._connections.getCurrentConnectionTitle().subscribe(connectionTitle => {
- this.title.setTitle(`Audit - ${connectionTitle} | Rocketadmin`);
+ this.title.setTitle(`Audit - ${connectionTitle} | ${this._companyService.companyTabTitle || 'Rocketadmin'}`);
+
+ this.getTitleSubscription.unsubscribe();
});
this.connectionID = this._connections.currentConnectionID;
this.accesLevel = this._connections.currentConnectionAccessLevel;
@@ -120,10 +124,6 @@ export class AuditComponent implements OnInit, OnDestroy {
})
}
- ngOnDestroy() {
- this.getTitleSubscription.unsubscribe();
- }
-
loadLogsPage() {
this.dataSource.fetchLogs({
connectionID: this.connectionID,
diff --git a/frontend/src/app/components/company/company.component.css b/frontend/src/app/components/company/company.component.css
index 8a1f3eeae..340a97390 100644
--- a/frontend/src/app/components/company/company.component.css
+++ b/frontend/src/app/components/company/company.component.css
@@ -263,16 +263,22 @@
position: relative;
}
+.white-label-settings-images {
+ display: flex;
+ gap: 24px;
+ margin-top: 16px;
+ margin-bottom: 24px;
+}
+
.upload-logo-form {
display: flex;
align-items: center;
gap: 8px;
- margin-top: 8px;
}
.white-label-preview {
height: auto;
- margin-top: 20px;
+ margin-top: 8px;
width: 100%;
}
diff --git a/frontend/src/app/components/company/company.component.html b/frontend/src/app/components/company/company.component.html
index 0d9c4d3ce..010119336 100644
--- a/frontend/src/app/components/company/company.component.html
+++ b/frontend/src/app/components/company/company.component.html
@@ -258,32 +258,66 @@
-
-