From e65a6b7afe638ad56387fd8ca133d10d477a2240 Mon Sep 17 00:00:00 2001
From: csantosm <4a.santos@gmail.com>
Date: Thu, 2 Jun 2022 12:45:41 +0200
Subject: [PATCH] openvidu-components: Minor changes in recording panel view
---
.../recording-activity.component.html | 3 ++-
.../recording-activity.component.ts | 2 --
.../lib/components/panel/panel.component.html | 2 --
.../admin-dashboard.component.html | 1 +
.../admin-dashboard.component.scss | 0
.../admin-dashboard.component.spec.ts | 25 +++++++++++++++++++
.../admin-dashboard.component.ts | 15 +++++++++++
7 files changed, 43 insertions(+), 5 deletions(-)
create mode 100644 openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.html
create mode 100644 openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.scss
create mode 100644 openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.spec.ts
create mode 100644 openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.ts
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/activities-panel/recording-activity-panel/recording-activity.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/activities-panel/recording-activity-panel/recording-activity.component.html
index 67f559c2..d3cb66c3 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/activities-panel/recording-activity-panel/recording-activity.component.html
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/activities-panel/recording-activity-panel/recording-activity.component.html
@@ -65,7 +65,8 @@
{{ 'PANEL.RECORDING.STARTING' | translate }}
{{ 'PANEL.RECORDING.STOPPING' | translate }}
- Message: {{ recordingError | json }}
+ Message:
+ {{ recordingError | json }}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/activities-panel/recording-activity-panel/recording-activity.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/activities-panel/recording-activity-panel/recording-activity.component.ts
index 70b926b6..f666c988 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/activities-panel/recording-activity-panel/recording-activity.component.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/activities-panel/recording-activity-panel/recording-activity.component.ts
@@ -193,11 +193,9 @@ export class RecordingActivityComponent implements OnInit {
});
this.recordingErrorSub = this.libService.recordingErrorObs.subscribe((error: any) => {
- console.log(error);
if (error) {
this.recordingService.updateStatus(RecordingStatus.FAILED);
this.recordingError = error.error?.message || error.message || error;
- console.log('REC ERROR', this.recordingError)
}
});
}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/panel.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/panel.component.html
index 4f578c39..d39795e1 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/panel.component.html
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/panel.component.html
@@ -18,8 +18,6 @@
-
-
diff --git a/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.html b/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.html
new file mode 100644
index 00000000..4decee20
--- /dev/null
+++ b/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.html
@@ -0,0 +1 @@
+admin-dashboard works!
diff --git a/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.scss b/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.scss
new file mode 100644
index 00000000..e69de29b
diff --git a/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.spec.ts b/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.spec.ts
new file mode 100644
index 00000000..b6955164
--- /dev/null
+++ b/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.spec.ts
@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { AdminDashboardComponent } from './admin-dashboard.component';
+
+describe('AdminDashboardComponent', () => {
+ let component: AdminDashboardComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ AdminDashboardComponent ]
+ })
+ .compileComponents();
+ });
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(AdminDashboardComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.ts b/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.ts
new file mode 100644
index 00000000..b8a263d3
--- /dev/null
+++ b/openvidu-components-angular/src/app/admin/admin-dashboard/admin-dashboard.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'app-admin-dashboard',
+ templateUrl: './admin-dashboard.component.html',
+ styleUrls: ['./admin-dashboard.component.scss']
+})
+export class AdminDashboardComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+
+}