|
|
@ -14,7 +14,7 @@ |
|
|
/// limitations under the License.
|
|
|
/// limitations under the License.
|
|
|
///
|
|
|
///
|
|
|
|
|
|
|
|
|
import { Component, Input, OnInit, HostBinding } from '@angular/core'; |
|
|
import { Component, Input, OnInit } from '@angular/core'; |
|
|
import { coerceBoolean } from '@shared/decorators/coercion'; |
|
|
import { coerceBoolean } from '@shared/decorators/coercion'; |
|
|
import { AuthService } from '@core/auth/auth.service'; |
|
|
import { AuthService } from '@core/auth/auth.service'; |
|
|
import { AppState } from '@core/core.state'; |
|
|
import { AppState } from '@core/core.state'; |
|
|
@ -30,11 +30,6 @@ import { UrlHolder } from '@shared/pipe/image.pipe'; |
|
|
}) |
|
|
}) |
|
|
export class LogoComponent implements OnInit { |
|
|
export class LogoComponent implements OnInit { |
|
|
|
|
|
|
|
|
@HostBinding('class.login-logo') |
|
|
|
|
|
get isLoginLogoClass() { |
|
|
|
|
|
return this.isLogin; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Input() |
|
|
@Input() |
|
|
@coerceBoolean() |
|
|
@coerceBoolean() |
|
|
isLogin: boolean = false; |
|
|
isLogin: boolean = false; |
|
|
@ -54,14 +49,4 @@ export class LogoComponent implements OnInit { |
|
|
this.logoLink = this.authService.defaultUrl(true, authState); |
|
|
this.logoLink = this.authService.defaultUrl(true, authState); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
onLogoClick() { |
|
|
|
|
|
if (this.isLogin) { |
|
|
|
|
|
this.gotoThingsboard(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private gotoThingsboard() { |
|
|
|
|
|
window.open('https://thingsboard.io', '_blank'); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|