refactor: NodeShareModal
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/888/head
parent
1bc251012c
commit
cfe63c328e
|
@ -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;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue