mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
[CST-4878] Created component
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<p>section-accesses works!</p>
|
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { SubmissionSectionAccessesComponent } from './section-accesses.component';
|
||||
|
||||
describe('SubmissionSectionAccessesComponent', () => {
|
||||
let component: SubmissionSectionAccessesComponent;
|
||||
let fixture: ComponentFixture<SubmissionSectionAccessesComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [SubmissionSectionAccessesComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(SubmissionSectionAccessesComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
@@ -0,0 +1,20 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { renderSectionFor } from 'src/app/submission/sections/sections-decorator';
|
||||
import { SectionsType } from 'src/app/submission/sections/sections-type';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-section-accesses',
|
||||
templateUrl: './section-accesses.component.html',
|
||||
styleUrls: ['./section-accesses.component.scss']
|
||||
})
|
||||
@renderSectionFor(SectionsType.Accesses)
|
||||
export class SubmissionSectionAccessesComponent implements OnInit {
|
||||
|
||||
// tslint:disable-next-line:no-empty
|
||||
constructor() { }
|
||||
|
||||
// tslint:disable-next-line:no-empty
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
@@ -4,5 +4,6 @@ export enum SectionsType {
|
||||
Upload = 'upload',
|
||||
License = 'license',
|
||||
CcLicense = 'cclicense',
|
||||
collection = 'collection'
|
||||
collection = 'collection',
|
||||
Accesses = 'accesses',
|
||||
}
|
||||
|
Reference in New Issue
Block a user