diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 172f9c9..801cd53 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,7 @@ jobs: if: github.event.pull_request.merged runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # The branch, tag or SHA to checkout. When checking out the repository that # triggered a workflow, this defaults to the reference or SHA for that event. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d2cf5a2..f457f2e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # runs npm i inside the root directory - name: npm i root run: | diff --git a/projects/ngx-material-entity/package.json b/projects/ngx-material-entity/package.json index 9948732..bc08193 100644 --- a/projects/ngx-material-entity/package.json +++ b/projects/ngx-material-entity/package.json @@ -1,6 +1,6 @@ { "name": "ngx-material-entity", - "version": "18.0.0", + "version": "18.0.1", "license": "MIT", "keywords": [ "angular", diff --git a/projects/ngx-material-entity/src/components/table/create-dialog/create-entity-dialog.component.ts b/projects/ngx-material-entity/src/components/table/create-dialog/create-entity-dialog.component.ts index 3662168..71e1060 100644 --- a/projects/ngx-material-entity/src/components/table/create-dialog/create-entity-dialog.component.ts +++ b/projects/ngx-material-entity/src/components/table/create-dialog/create-entity-dialog.component.ts @@ -142,6 +142,7 @@ export class NgxMatEntityCreateDialogComponent { await this.entityService.create(this.data.entity); + this.unsavedChanges.emit(false); this.dialogRef.close(); } @@ -170,6 +171,7 @@ export class NgxMatEntityCreateDialogComponent { await this.entityService.update(this.data.entity, this.entityPriorChanges); + this.unsavedChanges.emit(false); this.dialogRef.close(1); } @@ -225,6 +226,7 @@ export class NgxMatEntityEditDialogComponent { await this.entityService.delete(this.entityPriorChanges); + this.unsavedChanges.emit(false); this.dialogRef.close(2); } @@ -254,6 +256,7 @@ export class NgxMatEntityEditDialogComponent