mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix 'Login' code style issues (tslint)
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = function (config) {
|
|||||||
|
|
||||||
// level of logging
|
// level of logging
|
||||||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
||||||
logLevel: config.LOG_DEBUG,
|
logLevel: config.LOG_INFO,
|
||||||
|
|
||||||
colors: true,
|
colors: true,
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<div class="login-card-wide mdl-card mdl-shadow--4dp">
|
<div class="login-card-wide mdl-card mdl-shadow--4dp">
|
||||||
<form [ngFormModel]="form" (submit)="onSubmit(form.value, $event)">
|
<form [ngFormModel]="form" (submit)="onSubmit(form.value, $event)">
|
||||||
<div class="mdl-card__title alfresco-logo">
|
<div class="mdl-card__title alfresco-logo">
|
||||||
<img class="center" [src]="__baseUrl + '/../assets/images/logo_for_light_bg_28.png'">
|
<img class="center" [src]="baseComponentPath + '/../assets/images/logo_for_light_bg_28.png'">
|
||||||
</div>
|
</div>
|
||||||
<div class="mdl-card__supporting-text">
|
<div class="mdl-card__supporting-text">
|
||||||
<div class="error">
|
<div class="error">
|
||||||
|
@@ -37,7 +37,7 @@ declare let __moduleName: string;
|
|||||||
})
|
})
|
||||||
export class AlfrescoLoginComponent {
|
export class AlfrescoLoginComponent {
|
||||||
|
|
||||||
__baseUrl = __moduleName.replace('/alfresco-login.component.js', '');
|
baseComponentPath = __moduleName.replace('/alfresco-login.component.js', '');
|
||||||
|
|
||||||
isPasswordShow: boolean = false;
|
isPasswordShow: boolean = false;
|
||||||
|
|
||||||
@@ -148,9 +148,9 @@ export class AlfrescoLoginComponent {
|
|||||||
toggleShowPassword() {
|
toggleShowPassword() {
|
||||||
this.isPasswordShow = !this.isPasswordShow;
|
this.isPasswordShow = !this.isPasswordShow;
|
||||||
if (this.isPasswordShow) {
|
if (this.isPasswordShow) {
|
||||||
(<HTMLInputElement>document.getElementById("password")).type = 'text'
|
(<HTMLInputElement>document.getElementById('password')).type = 'text';
|
||||||
} else {
|
} else {
|
||||||
(<HTMLInputElement>document.getElementById("password")).type = 'password';
|
(<HTMLInputElement>document.getElementById('password')).type = 'password';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,10 +163,6 @@ export class AlfrescoLoginComponent {
|
|||||||
if (typeof componentHandler !== 'undefined') {
|
if (typeof componentHandler !== 'undefined') {
|
||||||
componentHandler.upgradeAllRegistered();
|
componentHandler.upgradeAllRegistered();
|
||||||
}
|
}
|
||||||
if (field.valid) {
|
return !field.valid;
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user