Commit 23146aab authored by prumde's avatar prumde

Updated ecm-user-option.component.html and ecm-user.option.component.ts


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174255 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6e357081
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<div class="user-info-section"> <div class="user-info-section">
<div> <div>
<div class="user-profile-image" titile="Profile"> <div class="user-profile-image" titile="Profile">
<img [src]="userData.profileImageLink" onerror="this.src = '/ecm/assets/images/w_user_128_128.png'; " class="profile-image profile-image-128" title="{{userData.NAME}}" /> <img [src]="userData.profileImageLink" onerror="this.src = hostUrl + '/ecm/assets/images/w_user_128_128.png'; " class="profile-image profile-image-128" title="{{userData.NAME}}" />
</div> </div>
<i class="image-edit-icon" (click)="openDialog();"></i> <i class="image-edit-icon" (click)="openDialog();"></i>
</div> </div>
......
...@@ -10,6 +10,7 @@ import { AppState } from '../ecm-store/reducers'; ...@@ -10,6 +10,7 @@ import { AppState } from '../ecm-store/reducers';
import { CartActions } from '../ecm-store/actions'; import { CartActions } from '../ecm-store/actions';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
import { EcmLocation } from '../ecm-search/ecm-location'; import { EcmLocation } from '../ecm-search/ecm-location';
import { HostUrlService } from '../host-url.service';
declare var getContentPlugin: any; declare var getContentPlugin: any;
...@@ -38,10 +39,13 @@ export class EcmUserOptionComponent implements OnInit { ...@@ -38,10 +39,13 @@ export class EcmUserOptionComponent implements OnInit {
_new_password: string; _new_password: string;
_confirm_password: string; _confirm_password: string;
timer : any; timer : any;
hostUrl;
constructor( public signinService: ECMSigninService, private store: Store<AppState>, public cartService: EcmCartService, private cartAction: CartActions, private locationService: EcmLocationService, private route: ActivatedRoute, private router: Router) { } constructor(public hostUrlService : HostUrlService, public signinService: ECMSigninService, private store: Store<AppState>, public cartService: EcmCartService, private cartAction: CartActions, private locationService: EcmLocationService, private route: ActivatedRoute, private router: Router) {
this.hostUrl=this.hostUrlService.hostUrl;
}
ngOnInit() { ngOnInit() {
console.log( 'ECMUserOption onInit hostUrl' , this.hostUrl);
var userInfo = localStorage.getItem( 'userInfo' ); var userInfo = localStorage.getItem( 'userInfo' );
console.log( 'EcmUserOptionComponent getUserInfo ::' + userInfo ); console.log( 'EcmUserOptionComponent getUserInfo ::' + userInfo );
if ( userInfo !== 'undefined' && userInfo !== null && userInfo !== 'null' ) { if ( userInfo !== 'undefined' && userInfo !== null && userInfo !== 'null' ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment