diff --git a/src/main/jhipster/src/main/webapp/app/entities/sample/index.ts b/src/main/jhipster/src/main/webapp/app/entities/sample/index.ts index d1db00ce09..45824e0c6c 100644 --- a/src/main/jhipster/src/main/webapp/app/entities/sample/index.ts +++ b/src/main/jhipster/src/main/webapp/app/entities/sample/index.ts @@ -1,9 +1,5 @@ export * from './sample.model'; -export * from './sample-popup.service'; export * from './sample.service'; -export * from './sample-dialog.component'; -export * from './sample-delete-dialog.component'; -export * from './sample-detail.component'; export * from './sample-manager.component'; export * from './sample.component'; export * from './sample.route'; diff --git a/src/main/jhipster/src/main/webapp/app/entities/sample/sample-delete-dialog.component.html b/src/main/jhipster/src/main/webapp/app/entities/sample/sample-delete-dialog.component.html deleted file mode 100644 index f80272b72d..0000000000 --- a/src/main/jhipster/src/main/webapp/app/entities/sample/sample-delete-dialog.component.html +++ /dev/null @@ -1,19 +0,0 @@ -
diff --git a/src/main/jhipster/src/main/webapp/app/entities/sample/sample-delete-dialog.component.ts b/src/main/jhipster/src/main/webapp/app/entities/sample/sample-delete-dialog.component.ts deleted file mode 100644 index ba12127c47..0000000000 --- a/src/main/jhipster/src/main/webapp/app/entities/sample/sample-delete-dialog.component.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Component, OnInit, OnDestroy } from '@angular/core'; -import { ActivatedRoute } from '@angular/router'; - -import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; -import { JhiEventManager } from 'ng-jhipster'; - -import { Sample } from './sample.model'; -import { SamplePopupService } from './sample-popup.service'; -import { SampleService } from './sample.service'; - -@Component({ - selector: 'jhi-sample-delete-dialog', - templateUrl: './sample-delete-dialog.component.html' -}) -export class SampleDeleteDialogComponent { - - sample: Sample; - - constructor( - private sampleService: SampleService, - public activeModal: NgbActiveModal, - private eventManager: JhiEventManager - ) { - } - - clear() { - this.activeModal.dismiss('cancel'); - } - - confirmDelete(id: number) { - this.sampleService.delete(id).subscribe((response) => { - this.eventManager.broadcast({ - name: 'sampleListModification', - content: 'Deleted an sample' - }); - this.activeModal.dismiss(true); - }); - } -} - -@Component({ - selector: 'jhi-sample-delete-popup', - template: '' -}) -export class SampleDeletePopupComponent implements OnInit, OnDestroy { - - routeSub: any; - - constructor( - private route: ActivatedRoute, - private samplePopupService: SamplePopupService - ) {} - - ngOnInit() { - this.routeSub = this.route.params.subscribe((params) => { - this.samplePopupService - .open(SampleDeleteDialogComponent as Component, params['id']); - }); - } - - ngOnDestroy() { - this.routeSub.unsubscribe(); - } -} diff --git a/src/main/jhipster/src/main/webapp/app/entities/sample/sample-detail.component.html b/src/main/jhipster/src/main/webapp/app/entities/sample/sample-detail.component.html deleted file mode 100644 index 0161a85cfa..0000000000 --- a/src/main/jhipster/src/main/webapp/app/entities/sample/sample-detail.component.html +++ /dev/null @@ -1,54 +0,0 @@ - -