Commit bfa14277 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@174517 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 466891df
......@@ -37,7 +37,7 @@
<div class="user-info-section">
<div>
<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>
<i class="image-edit-icon" (click)="openDialog();"></i>
</div>
......
......@@ -10,6 +10,7 @@ import { AppState } from '../ecm-store/reducers';
import { CartActions } from '../ecm-store/actions';
import { Observable } from 'rxjs/Observable';
import { EcmLocation } from '../ecm-search/ecm-location';
import { HostUrlService } from '../host-url.service';
declare var getContentPlugin: any;
......@@ -38,10 +39,13 @@ export class EcmUserOptionComponent implements OnInit {
_new_password: string;
_confirm_password: string;
timer : any;
constructor( public signinService: ECMSigninService, private store: Store<AppState>, public cartService: EcmCartService, private cartAction: CartActions, private locationService: EcmLocationService, private route: ActivatedRoute, private router: Router) { }
hostUrl;
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() {
console.log( 'ECMUserOption onInit hostUrl' , this.hostUrl);
var userInfo = localStorage.getItem( 'userInfo' );
console.log( 'EcmUserOptionComponent getUserInfo ::' + userInfo );
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