Skip to content

Commit d34c137

Browse files
Merge pull request #7173 from nextcloud/renovate/stable31-nextcloud-dialogs-6.x
fix(deps): update dependency @nextcloud/dialogs to ^6.2.0 (stable31)
2 parents 249f0a0 + c7b1bc8 commit d34c137

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

package-lock.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@nextcloud/auth": "^2.4.0",
3939
"@nextcloud/axios": "^2.5.1",
4040
"@nextcloud/browser-storage": "^0.4.0",
41-
"@nextcloud/dialogs": "^6.1.1",
41+
"@nextcloud/dialogs": "^6.2.0",
4242
"@nextcloud/event-bus": "^3.3.2",
4343
"@nextcloud/files": "^3.10.2",
4444
"@nextcloud/initial-state": "^2.2.0",

src/components/Menu/ActionInsertLink.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ export default {
149149
.build()
150150
151151
filePicker.pick()
152-
.then((file) => {
152+
.then((files) => {
153153
const client = OC.Files.getClient()
154-
client.getFileInfo(file).then((_status, fileInfo) => {
154+
client.getFileInfo(files[0]).then((_status, fileInfo) => {
155155
const url = new URL(generateUrl(`/f/${fileInfo.id}`), window.origin)
156156
this.setLink(url.href, fileInfo.name)
157157
this.startPath = fileInfo.path + (fileInfo.type === 'dir' ? `/${fileInfo.name}/` : '')
@@ -160,9 +160,10 @@ export default {
160160
})
161161
.catch(() => {
162162
// do not close menu but keep focus
163-
this.$refs.buttonFile.$el.focus()
163+
this.$refs.buttonFile?.$el.focus()
164164
})
165165
},
166+
166167
/**
167168
* Allow user to enter an URL manually
168169
* Triggered when by the "link url" button
@@ -184,6 +185,7 @@ export default {
184185
}
185186
this.isInputMode = true
186187
},
188+
187189
/**
188190
* Save user entered URL as a link markup
189191
* Triggered when the user submits the ActionInput
@@ -228,6 +230,7 @@ export default {
228230
}
229231
chain.focus().run()
230232
},
233+
231234
/**
232235
* Remove link markup at current position
233236
* Triggered by the "remove link" button
@@ -236,6 +239,7 @@ export default {
236239
this.$editor.chain().unsetLink().focus().run()
237240
this.menuOpen = false
238241
},
242+
239243
linkPicker() {
240244
getLinkWithPicker(null, true)
241245
.then(link => {

0 commit comments

Comments
 (0)