mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
* refactor(app): create a composed header component refactor(app): support single child breadcrumbs fix(app): fix breadcrumbs warning * refactor(app): import breadcrumbs * refactor(app): support object breadcrumbs * chore(app): write tests for header components
15 lines
314 B
JavaScript
15 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;
|
|
}
|
|
}
|
|
}
|