mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 07:15:23 +02:00
fix(environment): update page title when no environment selected. (#7606)
* fix(environment): update page title when no environment selected. * fix(environment): update page title when clearing environment from side bar. * fix(environment): update page title when clearing environment from a non-environment page.
This commit is contained in:
parent
2b2580fb61
commit
77c3f9131b
4 changed files with 15 additions and 3 deletions
|
@ -50,6 +50,7 @@ angular.module('portainer.app').factory('Authentication', [
|
|||
clearSessionStorage();
|
||||
StateManager.clean();
|
||||
EndpointProvider.clean();
|
||||
EndpointProvider.setCurrentEndpoint(null);
|
||||
LocalStorage.cleanAuthData();
|
||||
LocalStorage.storeLoginStateUUID('');
|
||||
tryAutoLoginExtension();
|
||||
|
|
|
@ -4,6 +4,7 @@ export interface EndpointProvider {
|
|||
setEndpointID(id: Environment['Id']): void;
|
||||
setEndpointPublicURL(url?: string): void;
|
||||
setOfflineModeFromStatus(status: Environment['Status']): void;
|
||||
setCurrentEndpoint(endpoint: Environment | undefined): void;
|
||||
}
|
||||
|
||||
export interface StateManager {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue