Skip to content

Commit 155c66c

Browse files
author
Piotr Siatka
committed
Change methods to protected due to inheritance.
1 parent a3e22e2 commit 155c66c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/FileBrowserService.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SPHttpClient } from "@microsoft/sp-http";
44
import { GeneralHelper } from "..";
55

66
export class FileBrowserService {
7-
private context: WebPartContext;
7+
protected context: WebPartContext;
88

99
constructor(context: WebPartContext) {
1010
this.context = context;
@@ -52,7 +52,7 @@ export class FileBrowserService {
5252
return fileItems;
5353
}
5454

55-
private getFileTypeFilter(accepts: string) {
55+
protected getFileTypeFilter(accepts: string) {
5656
let fileFilter: string = "";
5757

5858
if (accepts && accepts != "") {
@@ -69,7 +69,7 @@ export class FileBrowserService {
6969
return fileFilter;
7070
}
7171

72-
private getFilesCamlQueryViewXml = (accepts: string) => {
72+
protected getFilesCamlQueryViewXml = (accepts: string) => {
7373
const fileFilter: string = this.getFileTypeFilter(accepts);
7474
let queryCondition = fileFilter && fileFilter != "" ?
7575
`<Query>
@@ -118,7 +118,7 @@ export class FileBrowserService {
118118
return viewXml;
119119
}
120120

121-
private _parseFileItem = (fileItem: any): IFile => {
121+
protected _parseFileItem = (fileItem: any): IFile => {
122122
const modifiedFriendly: string = fileItem["Modified.FriendlyDisplay"];
123123

124124
// Get the modified date
@@ -147,7 +147,7 @@ export class FileBrowserService {
147147
/**
148148
* Creates an absolute URL
149149
*/
150-
private _buildAbsoluteUrl = (relativeUrl: string) => {
150+
protected _buildAbsoluteUrl = (relativeUrl: string) => {
151151
const siteUrl: string = GeneralHelper.getAbsoluteDomainUrl(this.context.pageContext.web.absoluteUrl);
152152
return siteUrl + relativeUrl;
153153
}

0 commit comments

Comments
 (0)