Skip to content

Commit 6b200b2

Browse files
authored
Merge pull request #37 from bci-oss/30-export-confirmation-dialog-is-not-updated
Bugfix: Export confirmation dialog is not updated
2 parents 415b2bb + 82f858c commit 6b200b2

File tree

3 files changed

+3
-20
lines changed
  • src/ng-generate/components
    • card/generators/components/export-dialog
    • table/generators/components/export-dialog

3 files changed

+3
-20
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ The following people have contributed to this repository:
99
* Hagen Wittlich
1010
* Arun Kumar Rajapal
1111
* Wolfgang Klenk
12+
* Pavel Shalamkov
1213

1314
Please add yourself to this list, if you contribute to the content.

src/ng-generate/components/card/generators/components/export-dialog/index.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,11 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
import {apply, applyTemplates, MergeStrategy, mergeWith, move, noop, Rule, SchematicContext, Tree, url} from '@angular-devkit/schematics';
14+
import {apply, applyTemplates, MergeStrategy, mergeWith, move, Rule, SchematicContext, Tree, url} from '@angular-devkit/schematics';
1515
import {strings} from '@angular-devkit/core';
1616

1717
export function generateExportCardDialog(options: any): Rule {
1818
return (tree: Tree, _context: SchematicContext) => {
19-
const filePath = 'src/app/shared/components/export-confirmation-dialog/export-card-dialog.component';
20-
const htmlPath = `${filePath}.html`;
21-
const scssPath = `${filePath}.scss`;
22-
const tsPath = `${filePath}.ts`;
23-
24-
if (tree.exists(htmlPath) && tree.exists(scssPath) && tree.exists(tsPath)) {
25-
return noop();
26-
}
27-
2819
return mergeWith(
2920
apply(url('./generators/components/export-dialog/files'), [
3021
applyTemplates({

src/ng-generate/components/table/generators/components/export-dialog/index.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,11 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
import {apply, applyTemplates, MergeStrategy, mergeWith, move, noop, Rule, SchematicContext, Tree, url} from '@angular-devkit/schematics';
14+
import {apply, applyTemplates, MergeStrategy, mergeWith, move, Rule, SchematicContext, Tree, url} from '@angular-devkit/schematics';
1515
import {strings} from '@angular-devkit/core';
1616

1717
export function generateExportTableDialog(options: any): Rule {
1818
return (tree: Tree, _context: SchematicContext) => {
19-
const filePath = 'src/app/shared/components/export-confirmation-dialog/export-table-dialog.component';
20-
const htmlPath = `${filePath}.html`;
21-
const scssPath = `${filePath}.scss`;
22-
const tsPath = `${filePath}.ts`;
23-
24-
if (tree.exists(htmlPath) && tree.exists(scssPath) && tree.exists(tsPath)) {
25-
return noop();
26-
}
27-
2819
return mergeWith(
2920
apply(url('./generators/components/export-dialog/files'), [
3021
applyTemplates({

0 commit comments

Comments
 (0)