1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 21:39:40 +02:00
portainer/app/portainer/components/PageHeader/HeaderTitle.controller.js

16 lines
314 B
JavaScript
Raw Normal View History

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;
}
}
}