refactor: NodeShareModal

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-24 11:05:12 -07:00
parent 1bc251012c
commit cfe63c328e
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template>
<Modal ref="modal" @close="cleanup" size="normal" v-if="show" :sidebar="!isRoot && !isMobile ? filename : null">
<Modal ref="modal" @close="cleanup" size="normal" v-if="show" :sidebar="sidebar">
<template #title>
{{ t('memories', 'Link Sharing') }}
</template>
@ -116,8 +116,8 @@ export default defineComponent({
return this.filename === '/' || this.filename === '';
},
isMobile(): boolean {
return utils.isMobile();
sidebar() {
return !this.isRoot && !utils.isMobile() ? this.filename : null;
},
},