Skip to content

Commit

Permalink
Fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear committed Dec 23, 2023
1 parent 3897926 commit 8b46a4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,10 @@
<script lang="ts">
import { computed, defineComponent, inject, Ref, ref, unref, watch } from 'vue'
import { mapGetters } from 'vuex'
import { ImageDimension, useConfigurationManager, useUserContext } from '@ownclouders/web-pkg'
import { ImageDimension, useConfigurationManager } from '@ownclouders/web-pkg'
import upperFirst from 'lodash-es/upperFirst'
import { ShareTypes } from '@ownclouders/web-client/src/helpers/share'
import {
useCapabilityFilesTags,
useClientService,
usePublicLinkContext,
useStore,
Expand Down Expand Up @@ -176,7 +175,6 @@ export default defineComponent({
const resource = inject<Ref<Resource>>('resource')
const space = inject<Ref<SpaceResource>>('space')
const isPublicLinkContext = usePublicLinkContext({ store })
const isUserContext = useUserContext({ store })
const previewService = usePreviewService()
const preview = ref(undefined)
Expand Down Expand Up @@ -260,9 +258,8 @@ export default defineComponent({
data: tagsHelper({ configurationManager: configurationManager })
} as ContextualHelper
const capabilityFilesTags = useCapabilityFilesTags()
const hasTags = computed(() => {
return props.tagsEnabled && unref(capabilityFilesTags) && unref(isUserContext)
return props.tagsEnabled && unref(capabilityFilesTags)
})
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ export default defineComponent({
if (unref(resource)?.tags) {
selectedTags.value = unref(currentTags)
}
loadAvailableTagsTask.perform()
if (!unref(readonly)) {
loadAvailableTagsTask.perform()
}
})
const keydownMethods = (map, vm) => {
Expand Down
6 changes: 5 additions & 1 deletion packages/web-runtime/src/components/Topbar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ export default {
return props.applicationsList
.filter((app) => {
if (app.type === 'extension') {
return app?.applicationMenu?.enabled(store, ability) && !permittedMenus.includes('user')
return (
app.applicationMenu.enabled instanceof Function &&
app.applicationMenu.enabled(store, ability) &&
!permittedMenus.includes('user')
)
}
return isNavItemPermitted(permittedMenus, app)
})
Expand Down

0 comments on commit 8b46a4d

Please sign in to comment.