Skip to content

Commit

Permalink
fix in training resources in 104 km issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Parth Kothari committed May 20, 2024
1 parent 06d7faa commit 74d1baf
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
5 changes: 5 additions & 0 deletions src/app/message-dialog/message-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export class MessageDialogComponent implements OnInit {
for (let i = 0; i < this.docs.length; i++) {
this.docs[i]['urls'] = this.checkForURL(this.docs[i].notificationDesc)
}
this.docs.filter(item => {
if(item.kmFilePath !== undefined || item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
console.log('after urls filtering', this.docs);
}
ngDoCheck() {
Expand Down
16 changes: 8 additions & 8 deletions src/app/services/config/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ import { Injectable } from '@angular/core';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/map';

const commonIP = 'http://10.208.122.38:8080/';
const IP1097 = 'http://10.208.122.38:8080/';
const telephonyServerIP = 'http://10.208.122.99/';
const adminIP = 'http://10.208.122.38:8080/';
const IP104 = 'http://10.208.122.38:8080/';
const mmuIP = 'http://10.208.122.38:8080/';
const tmIP = 'http://10.208.122.38:8080/';
const FHIRIP = "http://10.208.122.38:8080";
var commonIP = 'http://uatamrit.piramalswasthya.org:8080/';
var IP1097 = 'http://uatamrit.piramalswasthya.org:8080/';
var telephonyServerIP = 'http://192.168.45.55/';
var adminIP = 'http://uatamrit.piramalswasthya.org:8080/';
var IP104 = 'http://uatamrit.piramalswasthya.org:8080/';
var mmuIP = 'http://uatamrit.piramalswasthya.org:8080/';
var tmIP = 'http://uatamrit.piramalswasthya.org:8080/';
var FHIRIP = "http://uatamrit.piramalswasthya.org:8080";

@Injectable()
export class ConfigService {
Expand Down
5 changes: 5 additions & 0 deletions src/app/sio-scheme-service/sio-scheme-service.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ export class SioSchemeServiceComponent implements OnInit {
getSchemesSuccess(res) {
if (res.length > 0)
this.schemeList = res;
this.schemeList.filter(item => {
if(item.kmFilePath !== undefined || item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ export class SupervisorTrainingResourcesComponent implements OnInit {
.subscribe((response) => {
if (response.length !== 0) {
this.trainingResources = response.data;
this.trainingResources.filter(item => {
if(item.kmFilePath !== undefined || item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
console.log('Training resources', this.trainingResources);
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ export class SupervisorSchemeComponent implements OnInit {
getSchemesSuccess(res) {
if (res.length > 0)
this.schemeList = res;
this.schemeList.filter(item => {
if(item.kmFilePath !== undefined || item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
}
editScheme(scheme) {
this.create = false;
Expand Down

0 comments on commit 74d1baf

Please sign in to comment.