|
|
@ -157,7 +157,10 @@ export class UpdateCategoryComponent implements OnInit { |
|
|
|
let newUrl = window.location.protocol + '//' + window.location.host + body.imageUrl |
|
|
|
let newUrl = window.location.protocol + '//' + window.location.host + body.imageUrl |
|
|
|
body.imageUrl = newUrl |
|
|
|
body.imageUrl = newUrl |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (body.hasAttachmentDefault && body.attachment) { |
|
|
|
|
|
|
|
let newUrl = window.location.protocol + '//' + window.location.host + body.attachment |
|
|
|
|
|
|
|
body.attachment = newUrl |
|
|
|
|
|
|
|
} |
|
|
|
if (!instance.isSubmit) { |
|
|
|
if (!instance.isSubmit) { |
|
|
|
this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data: any) => { |
|
|
|
this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data: any) => { |
|
|
|
this.getStationList(); |
|
|
|
this.getStationList(); |
|
|
|