diff --git a/angular.json b/angular.json index db728ae2d..4037c51b9 100644 --- a/angular.json +++ b/angular.json @@ -17,9 +17,15 @@ "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", - "assets": ["src/favicon.ico", "src/favicon.png", "src/mdo-assets"], + "assets": [ + "src/favicon.ico", + "src/favicon.png", + "src/mdo-assets" + ], "stylePreprocessorOptions": { - "includePaths": ["src/styles"] + "includePaths": [ + "src/styles" + ] }, "styles": [ { @@ -246,16 +252,27 @@ "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", - "assets": ["src/favicon.ico", "src/mdo-assets"], - "styles": ["src/styles.scss"], + "assets": [ + "src/favicon.ico", + "src/mdo-assets" + ], + "styles": [ + "src/styles.scss" + ], "scripts": [] } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"], - "exclude": ["**/node_modules/**"] + "tsConfig": [ + "tsconfig.app.json", + "tsconfig.spec.json", + "e2e/tsconfig.json" + ], + "exclude": [ + "**/node_modules/**" + ] } }, "e2e": { @@ -296,8 +313,13 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": ["project/ws/app/tsconfig.lib.json", "project/ws/app/tsconfig.spec.json"], - "exclude": ["**/node_modules/**"] + "tsConfig": [ + "project/ws/app/tsconfig.lib.json", + "project/ws/app/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] } } } @@ -312,4 +334,4 @@ "cli": { "analytics": false } -} +} \ No newline at end of file diff --git a/package.json b/package.json index a048c7d9b..2edefed4b 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "@project-sunbird/telemetry-sdk": "0.0.26", "@sunbird-cb/collection": "1.0.13", "@sunbird-cb/design-system": "0.0.1", - "@sunbird-cb/rain-dashboards": "^0.2.2", + "@sunbird-cb/rain-dashboards": "^0.2.3", "@sunbird-cb/resolver": "^1.0.0", "@sunbird-cb/utils": "^1.0.12", "@types/file-saver": "^2.0.1", @@ -136,4 +136,4 @@ "typescript-tslint-plugin": "^0.5.4", "webpack-bundle-analyzer": "^4.4.0" } -} +} \ No newline at end of file diff --git a/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts b/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts index d480a6264..1c81166d6 100644 --- a/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts +++ b/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts @@ -121,7 +121,7 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { const minutes = obj.duration % 60 const duration = (hours === 0) ? ((minutes === 0) ? '---' : `${minutes} minutes`) : (minutes === 0) ? (hours === 1) ? `${hours} hour` : `${hours} hours` : (hours === 1) ? `${hours} hour ${minutes} minutes` : - `${hours} hours ${minutes} minutes` + `${hours} hours ${minutes} minutes` const creatordata = obj.creatorDetails !== undefined ? obj.creatorDetails : [] const str = creatordata && creatordata.length > 0 ? creatordata.replace(/\\/g, '') : [] const creatorDetails = str && str.length > 0 ? JSON.parse(str) : creatordata