Hide archive on folder view
parent
64d313c858
commit
4bc3ccf4f8
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue