From dc3b06af6d5dae004b94b205672c52756e55a3ce Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 14 Nov 2022 15:55:55 -0800 Subject: [PATCH] singout from navbar --- package.json | 2 +- packages/client/src/account.ts | 7 ++++++- packages/client/src/pages/user/index.vue | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5d47846c9..b42e7670c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.12.17", + "version": "12.119.0-calc.13-rc.1", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/account.ts b/packages/client/src/account.ts index 8cddd024f..eefcc9a10 100644 --- a/packages/client/src/account.ts +++ b/packages/client/src/account.ts @@ -221,7 +221,12 @@ export async function openAccountMenu(opts: { icon: 'ph-users-bold ph-lg', text: i18n.ts.manageAccounts, to: '/settings/accounts', - }]], ev.currentTarget ?? ev.target, { + },{ + type: 'button', + icon: 'ph-sign-out-bold ph-lg', + text: i18n.ts.logout, + action: () => { signout(); }, + },]], ev.currentTarget ?? ev.target, { align: 'left', }); } else { diff --git a/packages/client/src/pages/user/index.vue b/packages/client/src/pages/user/index.vue index 37b833fd8..205937537 100644 --- a/packages/client/src/pages/user/index.vue +++ b/packages/client/src/pages/user/index.vue @@ -144,6 +144,10 @@ function onSlideChange() { function syncSlide(index) { swiperRef.slideTo(index); } + +onMounted(() => { + syncSlide(tabs.indexOf(swiperRef.activeIndex)); +});