From 2b27f3972735d12e00719e3fc56c0fc6fb170f57 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Wed, 22 May 2024 20:39:31 +0530 Subject: [PATCH] [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 --- apiserver/plane/authentication/views/app/signout.py | 10 ++++------ docker-compose-local.yml | 2 +- web/store/root.store.ts | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/apiserver/plane/authentication/views/app/signout.py b/apiserver/plane/authentication/views/app/signout.py index 10461f240..260a89a8d 100644 --- a/apiserver/plane/authentication/views/app/signout.py +++ b/apiserver/plane/authentication/views/app/signout.py @@ -1,6 +1,3 @@ -# Python imports -from urllib.parse import urljoin - # Django imports from django.views import View from django.contrib.auth import logout @@ -23,9 +20,10 @@ class SignOutAuthEndpoint(View): user.save() # Log the user out logout(request) - url = urljoin(base_host(request=request, is_app=True), "sign-in") - return HttpResponseRedirect(url) + return HttpResponseRedirect( + base_host(request=request, is_app=True) + ) except Exception: return HttpResponseRedirect( - base_host(request=request, is_app=True), "sign-in" + base_host(request=request, is_app=True) ) diff --git a/docker-compose-local.yml b/docker-compose-local.yml index 18d54b688..39c587d2b 100644 --- a/docker-compose-local.yml +++ b/docker-compose-local.yml @@ -97,7 +97,7 @@ services: - dev_env volumes: - ./apiserver:/code - command: ./bin/docker-entrypoint-api.sh + command: ./bin/docker-entrypoint-api-local.sh env_file: - ./apiserver/.env depends_on: diff --git a/web/store/root.store.ts b/web/store/root.store.ts index b76fc4756..4e6a74815 100644 --- a/web/store/root.store.ts +++ b/web/store/root.store.ts @@ -96,7 +96,6 @@ export class RootStore { this.dashboard = new DashboardStore(this); this.router = new RouterStore(); this.commandPalette = new CommandPaletteStore(); - this.theme = new ThemeStore(this); this.eventTracker = new EventTrackerStore(this); this.instance = new InstanceStore(); this.user = new UserStore(this);