Hide archive on folder view

pull/62/head
Varun Patil 2022-09-25 16:13:57 -07:00
parent 64d313c858
commit 4bc3ccf4f8
1 changed files with 7 additions and 1 deletions

View File

@ -112,7 +112,7 @@
<template #icon> <Star :size="20" /> </template>
</NcActionButton>
<template>
<template v-if="allowArchive()">
<NcActionButton
v-if="!routeIsArchive()"
:aria-label="t('memories', 'Archive')"
@ -501,9 +501,15 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) {
if (queryStr) {
url += '?' + queryStr;
}
console.log(this.$route.name, url);
return url;
}
/** Archive is allowed only on timeline routes */
allowArchive() {
return this.$route.name === 'timeline' || this.$route.name === 'favorites' || this.$route.name === 'videos';
}
/** Is archive route */
routeIsArchive() {
return this.$route.name === 'archive';