singout from navbar
This commit is contained in:
parent
ae1b9f2ea7
commit
dc3b06af6d
3 changed files with 11 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.12.17",
|
"version": "12.119.0-calc.13-rc.1",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -221,7 +221,12 @@ export async function openAccountMenu(opts: {
|
||||||
icon: 'ph-users-bold ph-lg',
|
icon: 'ph-users-bold ph-lg',
|
||||||
text: i18n.ts.manageAccounts,
|
text: i18n.ts.manageAccounts,
|
||||||
to: '/settings/accounts',
|
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',
|
align: 'left',
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -144,6 +144,10 @@ function onSlideChange() {
|
||||||
function syncSlide(index) {
|
function syncSlide(index) {
|
||||||
swiperRef.slideTo(index);
|
swiperRef.slideTo(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
syncSlide(tabs.indexOf(swiperRef.activeIndex));
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in a new issue