Move repository dialogs to separate shared component
Signed-off-by: Trivernis <trivernis@protonmail.com>pull/4/head
parent
c1d25dd13b
commit
25786f9d3c
@ -1,14 +1,14 @@
|
|||||||
import {Component, Inject, ViewChild} from "@angular/core";
|
import {Component, Inject, ViewChild} from "@angular/core";
|
||||||
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
|
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
|
||||||
|
import {
|
||||||
|
RepositoryFormComponent
|
||||||
|
} from "../repository-form/repository-form.component";
|
||||||
import {
|
import {
|
||||||
RepositoryService
|
RepositoryService
|
||||||
} from "../../../../services/repository/repository.service";
|
} from "../../../../../services/repository/repository.service";
|
||||||
import {
|
import {
|
||||||
ErrorBrokerService
|
ErrorBrokerService
|
||||||
} from "../../../../services/error-broker/error-broker.service";
|
} from "../../../../../services/error-broker/error-broker.service";
|
||||||
import {
|
|
||||||
RepositoryFormComponent
|
|
||||||
} from "../repository-form/repository-form.component";
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-add-repository-dialog",
|
selector: "app-add-repository-dialog",
|
@ -0,0 +1,44 @@
|
|||||||
|
import {NgModule} from "@angular/core";
|
||||||
|
import {CommonModule} from "@angular/common";
|
||||||
|
import {
|
||||||
|
AddRepositoryDialogComponent
|
||||||
|
} from "./add-repository-dialog/add-repository-dialog.component";
|
||||||
|
import {
|
||||||
|
RepositoryFormComponent
|
||||||
|
} from "./repository-form/repository-form.component";
|
||||||
|
import {
|
||||||
|
EditRepositoryDialogComponent
|
||||||
|
} from "./edit-repository-dialog/edit-repository-dialog.component";
|
||||||
|
import {MatDialogModule} from "@angular/material/dialog";
|
||||||
|
import {MatButtonModule} from "@angular/material/button";
|
||||||
|
import {MatTooltipModule} from "@angular/material/tooltip";
|
||||||
|
import {MatSelectModule} from "@angular/material/select";
|
||||||
|
import {MatInputModule} from "@angular/material/input";
|
||||||
|
import {ReactiveFormsModule} from "@angular/forms";
|
||||||
|
import {NgIconsModule} from "@ng-icons/core";
|
||||||
|
import {MatFolder} from "@ng-icons/material-icons"
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
AddRepositoryDialogComponent,
|
||||||
|
EditRepositoryDialogComponent,
|
||||||
|
RepositoryFormComponent
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
AddRepositoryDialogComponent,
|
||||||
|
EditRepositoryDialogComponent,
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
MatDialogModule,
|
||||||
|
MatButtonModule,
|
||||||
|
MatTooltipModule,
|
||||||
|
MatSelectModule,
|
||||||
|
MatInputModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
|
NgIconsModule.withIcons({MatFolder})
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class RepositoryModule {
|
||||||
|
}
|
Loading…
Reference in New Issue