Skip to content

Commit

Permalink
Merge pull request #787 from alexgurrola/master
Browse files Browse the repository at this point in the history
AngularJS 0.11.3: Media Dialog API
  • Loading branch information
apocist authored Jul 31, 2024
2 parents 929ee5b + d43e6b2 commit 50420f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stratusjs/angular",
"version": "0.11.2",
"version": "0.11.3",
"description": "This is the angular package for StratusJS.",
"scripts": {},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion packages/angular/src/editor/media-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class MediaDialogComponent extends ResponsiveComponent implements OnInit
// TODO: Move this to its own AutoComplete Component
// AutoComplete Data
apiBase = '/Api/Media'
apiParams = 'forceContext=context'
mediaEntities: any[] = []
dialogMediaForm: FormGroup
isMediaLoading = true
Expand Down Expand Up @@ -197,7 +198,7 @@ export class MediaDialogComponent extends ResponsiveComponent implements OnInit
paging = this.pageEvent.pageIndex + 1
}
query = (_.isString(query) && !_.isEmpty(query)) ? `"${query}"` : ''
return `${this.apiBase}?limit=${limit}&p=${paging}&q=${query}`
return `${this.apiBase}?limit=${limit}&p=${paging}&q=${query}&${this.apiParams}`
}

getQuery(query?: string): Observable<HttpResponse<any>> {
Expand Down

0 comments on commit 50420f8

Please sign in to comment.