diff --git a/modules/ui/src/app/app.component.scss b/modules/ui/src/app/app.component.scss index 46db2a291..d5589fabd 100644 --- a/modules/ui/src/app/app.component.scss +++ b/modules/ui/src/app/app.component.scss @@ -102,7 +102,6 @@ $nav-open-btn-width: 210px; width: $nav-close-btn-width; display: flex; justify-content: flex-start; - padding-inline: 8px; } .app-sidebar-button:first-child { diff --git a/modules/ui/src/app/app.component.spec.ts b/modules/ui/src/app/app.component.spec.ts index 859cc7d64..901c08795 100644 --- a/modules/ui/src/app/app.component.spec.ts +++ b/modules/ui/src/app/app.component.spec.ts @@ -58,7 +58,6 @@ import { selectInterfaces, selectMenuOpened, } from './store/selectors'; -import { MatIconTestingModule } from '@angular/material/icon/testing'; describe('AppComponent', () => { let component: AppComponent; @@ -112,7 +111,6 @@ describe('AppComponent', () => { MatSidenavModule, BypassComponent, CalloutComponent, - MatIconTestingModule, ], providers: [ { provide: TestRunService, useValue: mockService }, @@ -143,7 +141,6 @@ describe('AppComponent', () => { AppComponent, FakeGeneralSettingsComponent, FakeSpinnerComponent, - FakeShutdownAppComponent, FakeVersionComponent, ], }); @@ -658,14 +655,6 @@ class FakeGeneralSettingsComponent { }) class FakeSpinnerComponent {} -@Component({ - selector: 'app-shutdown-app', - template: '
', -}) -class FakeShutdownAppComponent { - @Input() disable!: boolean; -} - @Component({ selector: 'app-version', template: '
', diff --git a/modules/ui/src/app/app.component.ts b/modules/ui/src/app/app.component.ts index 21605e630..55d6ab9dc 100644 --- a/modules/ui/src/app/app.component.ts +++ b/modules/ui/src/app/app.component.ts @@ -44,7 +44,6 @@ import { GeneralSettingsComponent } from './pages/settings/general-settings.comp import { AppStore } from './app.store'; const DEVICES_LOGO_URL = '/assets/icons/devices.svg'; -const DEVICES_RUN_URL = '/assets/icons/device_run.svg'; const REPORTS_LOGO_URL = '/assets/icons/reports.svg'; const TESTRUN_LOGO_URL = '/assets/icons/testrun_logo_small.svg'; const TESTRUN_LOGO_COLOR_URL = '/assets/icons/testrun_logo_color.svg'; @@ -95,10 +94,6 @@ export class AppComponent implements OnInit { 'devices', this.domSanitizer.bypassSecurityTrustResourceUrl(DEVICES_LOGO_URL) ); - this.matIconRegistry.addSvgIcon( - 'device_run', - this.domSanitizer.bypassSecurityTrustResourceUrl(DEVICES_RUN_URL) - ); this.matIconRegistry.addSvgIcon( 'reports', this.domSanitizer.bypassSecurityTrustResourceUrl(REPORTS_LOGO_URL) @@ -178,12 +173,4 @@ export class AppComponent implements OnInit { consentShown() { this.appStore.setContent(); } - - testrunInProgress(status?: string): boolean { - return ( - status === StatusOfTestrun.InProgress || - status === StatusOfTestrun.WaitingForDevice || - status === StatusOfTestrun.Monitoring - ); - } } diff --git a/modules/ui/src/app/app.module.ts b/modules/ui/src/app/app.module.ts index 753aaadc4..42ade0ddd 100644 --- a/modules/ui/src/app/app.module.ts +++ b/modules/ui/src/app/app.module.ts @@ -44,8 +44,6 @@ import { EffectsModule } from '@ngrx/effects'; import { AppEffects } from './store/effects'; import { CdkTrapFocus } from '@angular/cdk/a11y'; import { SettingsDropdownComponent } from './pages/settings/components/settings-dropdown/settings-dropdown.component'; -import { ShutdownAppComponent } from './components/shutdown-app/shutdown-app.component'; -import { WindowProvider } from './providers/window.provider'; @NgModule({ declarations: [AppComponent, GeneralSettingsComponent], @@ -73,10 +71,8 @@ import { WindowProvider } from './providers/window.provider'; EffectsModule.forRoot([AppEffects]), CdkTrapFocus, SettingsDropdownComponent, - ShutdownAppComponent, ], providers: [ - WindowProvider, { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, diff --git a/modules/ui/src/app/components/device-item/device-item.component.html b/modules/ui/src/app/components/device-item/device-item.component.html index 84117dd34..0496d74fb 100644 --- a/modules/ui/src/app/components/device-item/device-item.component.html +++ b/modules/ui/src/app/components/device-item/device-item.component.html @@ -61,6 +61,8 @@ attr.aria-label="Start new testrun for device {{ label }}" class="button-start" mat-flat-button> - + + play_arrow