hunk.code_window:     const settings = await this.SettingsService.publicSettings();
       try {
         await this.Authentication.logout();
       } finally {
         this.LocalStorage.storeLogoutReason(error);
         if (settings.OAuthLogoutURI && this.Authentication.getUserDetails().ID !== 1) {
           this.$window.location.href = settings.OAuthLogoutURI;
         } else {
           this.$state.go('portainer.auth', { reload: true });
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:       // always clear the kubernetes cache
         dispatchCacheRefreshEvent();
  
hunk.file_path: app/portainer/views/logout/logoutController.js
hunk.type: add