Shared pages refactoring part 3

This commit is contained in:
Čarodej
2022-02-08 14:25:28 +01:00
parent 7b0f9a19de
commit 4df575f5e9
13 changed files with 53 additions and 43 deletions

View File

@@ -151,7 +151,7 @@ const FunctionHelpers = {
Vue.prototype.$uploadFiles = async function (files) {
// Show alert message when upload is disabled
if (!store.getters.user.data.meta.restrictions.canUpload) {
if (store.getters.user && !store.getters.user.data.meta.restrictions.canUpload) {
Vue.prototype.$temporarilyDisabledUpload()
return
@@ -325,6 +325,7 @@ const FunctionHelpers = {
Vue.prototype.$getDataByLocation = function () {
let routes = {
Public: ['getSharedFolder', router.currentRoute.params.id || undefined],
Files: ['getFolder', router.currentRoute.params.id || undefined],
RecentUploads: ['getRecentUploads'],
MySharedItems: ['getMySharedItems'],