mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 21:39:40 +02:00
16 lines
314 B
JavaScript
16 lines
314 B
JavaScript
|
export default class HeaderTitle {
|
||
|
/* @ngInject */
|
||
|
constructor(Authentication) {
|
||
|
this.Authentication = Authentication;
|
||
|
|
||
|
this.username = null;
|
||
|
}
|
||
|
|
||
|
$onInit() {
|
||
|
const userDetails = this.Authentication.getUserDetails();
|
||
|
if (userDetails) {
|
||
|
this.username = userDetails.username;
|
||
|
}
|
||
|
}
|
||
|
}
|