[WEB-1380] chore: fix sidebar expanding issue on sign out. (#4557)

* [WEB-1380] chore: fix sidebar expanding issue on sign out.

* chore: update sign-out redirect url.

* dev: update signout view and fix the entrypoint on docker-compose-local

* chore: remove localStorage reset logic for `app_sidebar_collapsed` on sign-out.

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
This commit is contained in:
Prateek Shourya 2024-05-22 20:39:31 +05:30 committed by GitHub
parent 577996b34a
commit 2b27f39727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 8 deletions

View File

@ -1,6 +1,3 @@
# Python imports
from urllib.parse import urljoin
# Django imports # Django imports
from django.views import View from django.views import View
from django.contrib.auth import logout from django.contrib.auth import logout
@ -23,9 +20,10 @@ class SignOutAuthEndpoint(View):
user.save() user.save()
# Log the user out # Log the user out
logout(request) logout(request)
url = urljoin(base_host(request=request, is_app=True), "sign-in") return HttpResponseRedirect(
return HttpResponseRedirect(url) base_host(request=request, is_app=True)
)
except Exception: except Exception:
return HttpResponseRedirect( return HttpResponseRedirect(
base_host(request=request, is_app=True), "sign-in" base_host(request=request, is_app=True)
) )

View File

@ -97,7 +97,7 @@ services:
- dev_env - dev_env
volumes: volumes:
- ./apiserver:/code - ./apiserver:/code
command: ./bin/docker-entrypoint-api.sh command: ./bin/docker-entrypoint-api-local.sh
env_file: env_file:
- ./apiserver/.env - ./apiserver/.env
depends_on: depends_on:

View File

@ -96,7 +96,6 @@ export class RootStore {
this.dashboard = new DashboardStore(this); this.dashboard = new DashboardStore(this);
this.router = new RouterStore(); this.router = new RouterStore();
this.commandPalette = new CommandPaletteStore(); this.commandPalette = new CommandPaletteStore();
this.theme = new ThemeStore(this);
this.eventTracker = new EventTrackerStore(this); this.eventTracker = new EventTrackerStore(this);
this.instance = new InstanceStore(); this.instance = new InstanceStore();
this.user = new UserStore(this); this.user = new UserStore(this);