From 226ef715d7afe3758fbc88c05cf4d752c6bed51b Mon Sep 17 00:00:00 2001 From: Rachitha Ramappa Date: Wed, 23 Sep 2020 12:42:19 +0530 Subject: New audit info screen changes Audit screen css changes and export mso status to external file Change-Id: I71d577121e18090eab7a388ed01707823e45ac82 Issue-ID: VID-901 Signed-off-by: rachitha.ramappa@att.com --- .../spaceToUnderscore/space-to-underscore.pipe.spec.ts | 8 ++++++++ .../pipes/spaceToUnderscore/space-to-underscore.pipe.ts | 17 +++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.spec.ts create mode 100644 vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.ts (limited to 'vid-webpack-master/src/app/shared/pipes/spaceToUnderscore') diff --git a/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.spec.ts b/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.spec.ts new file mode 100644 index 000000000..96e9b6cc6 --- /dev/null +++ b/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.spec.ts @@ -0,0 +1,8 @@ +import { SpaceToUnderscorePipe } from './space-to-underscore.pipe'; + +describe('SpaceToUnderscorePipe', () => { + it('create an instance', () => { + const pipe = new SpaceToUnderscorePipe(); + expect(pipe).toBeTruthy(); + }); +}); diff --git a/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.ts b/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.ts new file mode 100644 index 000000000..b82b28bc1 --- /dev/null +++ b/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.ts @@ -0,0 +1,17 @@ +import { Pipe, PipeTransform } from '@angular/core'; + +@Pipe({ + name: 'spaceToUnderscore' +}) +export class SpaceToUnderscorePipe implements PipeTransform { + + transform(text: string): string { + if (text) { + // @ts-ignore + text = text.replaceAll(' ', '_'); + return text; + } + return text; + } + +} -- cgit 1.2.3-korg