enh: read only notes
This commit is contained in:
@@ -95,6 +95,7 @@ export const searchNotes = async (
|
||||
token: string = '',
|
||||
query: string | null = null,
|
||||
viewOption: string | null = null,
|
||||
permission: string | null = null,
|
||||
sortKey: string | null = null,
|
||||
page: number | null = null
|
||||
) => {
|
||||
@@ -109,6 +110,10 @@ export const searchNotes = async (
|
||||
searchParams.append('view_option', viewOption);
|
||||
}
|
||||
|
||||
if (permission !== null) {
|
||||
searchParams.append('permission', permission);
|
||||
}
|
||||
|
||||
if (sortKey !== null) {
|
||||
searchParams.append('order_by', sortKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user