File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 55
66<template >
77 <div v-if =" filePath === null" class =" office-target-picker" >
8- <div ref = " picker " class =" reference-file-picker" />
8+ <div class =" reference-file-picker" />
99 </div >
1010 <div v-else class =" office-target-picker" >
1111 <h2 >{{ t('richdocuments', 'Link to office document section') }}</h2 >
@@ -96,6 +96,13 @@ export default {
9696 },
9797 async openFilePicker () {
9898 const filePickerButtons = [
99+ {
100+ label: t (' richdocuments' , ' Cancel' ),
101+ callback : () => {
102+ this .$emit (' cancel' )
103+ },
104+ type: ' secondary' ,
105+ },
99106 {
100107 label: t (' richdocuments' , ' Select file' ),
101108 callback : (files ) => {
@@ -114,7 +121,7 @@ export default {
114121 mimetypeFilter: getCapabilities ().mimetypes ,
115122 allowPickDirectory: false ,
116123 buttons: filePickerButtons,
117- container: ' .office-target -picker' ,
124+ container: ' .reference-file -picker' ,
118125 })
119126 },
120127 setTarget (entry ) {
You can’t perform that action at this time.
0 commit comments