Verified Commit 8e49a911 authored by Peter Stanko's avatar Peter Stanko
Browse files

Fixes in the role and component

parent 2f5b8e5e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -57,6 +57,11 @@ export class ComponentDetailComponent implements OnInit, OnDestroy {
    });
  }

  resetForm() {
    this.updateFormData.reset();
    this.initFormValues();
  }

  updateComponent() {
    if (this.updateFormData.status !== 'VALID') {
      console.warn('[COMPONENT] Invalid form submitted', this.updateFormData);
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
    <div>
      <a routerLinkActive="active" [routerLink]="['/courses/' + role?.course.id]">Parent course
        ({{role?.course?.codename}})</a>
      <a routerLinkActive="active" [routerLink]="['/courses/' + group?.course.id + '/roles']">
      <a routerLinkActive="active" [routerLink]="['/courses/' + role?.course.id + '/roles']">
        Roles list
      </a>
    </div>