fix: added close settings modal button

This commit is contained in:
Shariq Ansari 2024-12-30 16:06:17 +05:30
parent 156770b635
commit 3ef9d783df

View File

@ -33,7 +33,14 @@
</nav> </nav>
</div> </div>
</div> </div>
<div class="flex flex-1 flex-col overflow-y-auto bg-surface-modal"> <div
class="flex relative flex-1 flex-col overflow-y-auto bg-surface-modal"
>
<Button
class="absolute right-5 top-5"
icon="x"
@click="showSettings = false"
/>
<component :is="activeTab.component" v-if="activeTab" /> <component :is="activeTab.component" v-if="activeTab" />
</div> </div>
</div> </div>
@ -57,7 +64,7 @@ import {
showSettings, showSettings,
activeSettingsPage, activeSettingsPage,
} from '@/composables/settings' } from '@/composables/settings'
import { Dialog, Avatar } from 'frappe-ui' import { Dialog, Button, Avatar } from 'frappe-ui'
import { ref, markRaw, computed, watch, h } from 'vue' import { ref, markRaw, computed, watch, h } from 'vue'
const { isManager, getUser } = usersStore() const { isManager, getUser } = usersStore()