mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix image paths for components (#1696)
* fix Login image paths * fix TaskList image paths * fix DocumentList image paths * fix Search image paths
This commit is contained in:
committed by
Mario Romano
parent
cf85840350
commit
5b5916bfb1
@@ -1,18 +1,14 @@
|
||||
<div class="content-grid mdl-grid content-layout login-content"
|
||||
[style.background-image]="'url(' + (backgroundImageUrl || baseComponentPath + '/../assets/images/background.svg') + ')'">
|
||||
[style.background-image]="'url(' + backgroundImageUrl + ')'">
|
||||
<div class="login-card-wide mdl-card mdl-shadow--4dp">
|
||||
<form [formGroup]="form" (submit)="onSubmit(form.value, $event)">
|
||||
<div class="mdl-card__title alfresco-logo">
|
||||
|
||||
<!--HEADER TEMPLATE-->
|
||||
<template *ngIf="headerTemplate"
|
||||
ngFor [ngForOf]="[data]"
|
||||
[ngForTemplate]="headerTemplate">
|
||||
</template>
|
||||
|
||||
<img *ngIf="!headerTemplate" class="center"
|
||||
[src]="logoImageUrl || baseComponentPath + '/../assets/images/alfresco-logo.svg'"
|
||||
alt="{{'LOGIN.LOGO' | translate }}">
|
||||
<img *ngIf="!headerTemplate" class="center" [src]="logoImageUrl" alt="{{'LOGIN.LOGO' | translate }}">
|
||||
</div>
|
||||
<div class="mdl-card__supporting-text">
|
||||
|
||||
|
@@ -31,7 +31,7 @@ declare let componentHandler: any;
|
||||
})
|
||||
export class AlfrescoLoginComponent implements OnInit {
|
||||
|
||||
baseComponentPath = module.id.replace('/alfresco-login.component.js', '');
|
||||
private baseComponentPath: string = module.id.replace('components/alfresco-login.component.js', '');
|
||||
|
||||
isPasswordShow: boolean = false;
|
||||
|
||||
@@ -42,10 +42,10 @@ export class AlfrescoLoginComponent implements OnInit {
|
||||
registerLink: string = '';
|
||||
|
||||
@Input()
|
||||
logoImageUrl: string;
|
||||
logoImageUrl: string = this.baseComponentPath + 'assets/images/alfresco-logo.svg';
|
||||
|
||||
@Input()
|
||||
backgroundImageUrl: string;
|
||||
backgroundImageUrl: string = this.baseComponentPath + 'assets/images/background.svg';
|
||||
|
||||
@Input()
|
||||
providers: string;
|
||||
@@ -69,13 +69,9 @@ export class AlfrescoLoginComponent implements OnInit {
|
||||
error: boolean = false;
|
||||
errorMsg: string;
|
||||
success: boolean = false;
|
||||
|
||||
formError: { [id: string]: string };
|
||||
|
||||
minLength: number = 2;
|
||||
|
||||
footerTemplate: TemplateRef<any>;
|
||||
|
||||
headerTemplate: TemplateRef<any>;
|
||||
|
||||
private _message: { [id: string]: { [id: string]: string } };
|
||||
|
Reference in New Issue
Block a user