back button in settings

This commit is contained in:
ThatOneCalculator 2023-04-04 21:59:11 -07:00
parent c030a227e5
commit 29799e36aa
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<template>
<div v-if="show" ref="el" class="fdidabkb" :class="{ slim: narrow, thin: thin_ }" :style="{ background: bg }" @click="onClick">
<div v-if="narrow" class="buttons left" @click="openAccountMenu">
<i @click="history.back()" v-if="props.displayBackButton" class="icon ph-caret-left ph-bold ph-lg"></i>
<MkAvatar v-if="props.displayMyAvatar && $i" class="avatar" :user="$i" :disable-preview="true"/>
</div>
<template v-if="metadata">
@ -59,6 +60,7 @@ const props = defineProps<{
}[];
thin?: boolean;
displayMyAvatar?: boolean;
displayBackButton?: boolean;
}>();
const emit = defineEmits<{

View File

@ -1,6 +1,6 @@
<template>
<MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs" :display-back-button="true"/></template>
<MkSpacer :content-max="900" :margin-min="20" :margin-max="32">
<div ref="el" class="vvcocwet" :class="{ wide: !narrow }">
<div class="body">