Skip to content

Commit 9fb33b7

Browse files
committed
Add search param to Pagelink picker. Closes #86
1 parent 22d711c commit 9fb33b7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fields/markdown.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
}
129129
],
130130
[
131-
'pattern' => 'get-pages',
131+
'pattern' => 'pages',
132132
'method' => 'GET',
133133
'action' => function () {
134134
$field = $this->field();
@@ -140,6 +140,7 @@
140140
'parent' => $this->requestQuery('parent'),
141141
'model' => $model,
142142
'query' => $query,
143+
'search' => $this->requestQuery('search'),
143144
];
144145

145146
return (new PagePicker($params))->toArray();

src/components/input/MarkdownInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export default {
209209
*/
210210
openPagesDialog() {
211211
this.$refs['pagesDialog'].open({
212-
endpoint: this.endpoints.field + '/get-pages',
212+
endpoint: this.endpoints.field + '/pages',
213213
multiple: false,
214214
selected: []
215215
})

0 commit comments

Comments
 (0)