Skip to content

Commit

Permalink
Merge pull request #6288 from nextcloud/backport/6283/stable28
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Aug 30, 2024
2 parents eb0d27b + 0e127da commit 20184d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Menu/ActionInsertLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
</template>
{{ t('text', 'Remove link') }}
</NcActionButton>
<NcActionButton ref="buttonFile"
<NcActionButton v-if="!isUsingDirectEditing"
ref="buttonFile"
:data-text-action-entry="`${actionEntry.key}-file`"
@click="linkFile">
<template #icon>
Expand Down Expand Up @@ -80,6 +81,7 @@
import { NcActions, NcActionButton, NcActionInput } from '@nextcloud/vue'
import { getLinkWithPicker } from '@nextcloud/vue/dist/Components/NcRichText.js'
import { FilePickerType, getFilePickerBuilder } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'

import { getMarkAttributes, isActive } from '@tiptap/core'

Expand Down Expand Up @@ -113,6 +115,7 @@ export default {
startPath: null,
/** Open state of the actions menu */
menuOpen: false,
isUsingDirectEditing: loadState('text', 'directEditingToken', null) !== null,
}
},
computed: {
Expand Down

0 comments on commit 20184d9

Please sign in to comment.