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> <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> <template #title>
{{ t('memories', 'Link Sharing') }} {{ t('memories', 'Link Sharing') }}
</template> </template>
@ -116,8 +116,8 @@ export default defineComponent({
return this.filename === '/' || this.filename === ''; return this.filename === '/' || this.filename === '';
}, },
isMobile(): boolean { sidebar() {
return utils.isMobile(); return !this.isRoot && !utils.isMobile() ? this.filename : null;
}, },
}, },