Skip to content

Commit 470669c

Browse files
committed
preprocessHash config options renamed
1 parent 03257b0 commit 470669c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ document.dispatchEvent(event);
132132
* `paginationRppOptions` The pagination options containing the numbers defining how many results should be shown per page. (Default: `[5, 10, 25]`)
133133
* `simultaneousDownloads` Number of simultaneous downloads. (Default: `2`)
134134
* `downloadMethod` HTTP method to use when downloading from the server (`GET`, `POST`, `PUT`, `PATCH`). (Default: `GET`)
135-
* `preprocessHashModule` Indicates if the built-in preprocess hash module should be added. (Default: `'false'`)
136-
* `preprocessHashEnabled` Indicates if the built-in preprocess hash should be enabled. (Default: `'true'`)
135+
* `preprocessHashEnabled` Indicates if the built-in preprocess hash module should be enabled. (Default: `'false'`)
136+
* `preprocessHashChecked` Indicates if the checkbox for the built-in preprocess hash module should be checked. (Default: `'true'`)
137137
* `preprocessHashTarget` The target URL for the GET request to the server for each file to see if it already exists based on the in-browser calculated hash. This can be a `string` or a `function` that allows you you to construct and return a value, based on supplied `params`. (Default: `https://httpbin.org`)
138138
* `preprocessHashMethod` HTTP method to use when sending file preprocess hash requests. (Default: `'GET'`)
139139
* `preprocessHashParameterName` The name of the preprocess hash request parameter. (Default: `'hash'`)

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Export
2626
<mat-icon>expand_more</mat-icon>
2727
</button>
28-
<mat-checkbox *ngIf="datatransferFacade.showPreprocessingCheckbox()" [(ngModel)]="config.core.preprocessHashEnabled" style="margin-left: 10px;">
28+
<mat-checkbox *ngIf="datatransferFacade.showPreprocessingCheckbox()" [(ngModel)]="config.core.preprocessHashChecked" style="margin-left: 10px;">
2929
Preprocessing
3030
</mat-checkbox>
3131
</div>

src/app/facades/datatransfer.facade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export class DatatransferFacade {
291291
}
292292

293293
public showPreprocessingCheckbox(): boolean {
294-
return this.store.count > 0 && this.config.core.preprocessHashModule;
294+
return this.store.count > 0 && this.config.core.preprocessHashEnabled;
295295
}
296296

297297
public showSpinner(item: IDatatransferItem): boolean {

src/app/io/uploaders/resumablejs.uploader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class ResumableJsUploader extends BaseUploader {
4343
that.changeItemStatus(resumableFile.internalItem, TransferStatus.Preprocessing);
4444
that.preprocessFileFn(resumableFile);
4545
} else {
46-
if (that.config.core.preprocessHashModule && that.config.core.preprocessHashEnabled) {
46+
if (that.config.core.preprocessHashEnabled && that.config.core.preprocessHashChecked) {
4747
that.changeItemStatus(resumableFile.internalItem, TransferStatus.Preprocessing);
4848
let continueCallback = function() {
4949
resumableFile.preprocessFinished();

src/app/models/app-config.model.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export class CoreAppConfig {
1515
paginationRppOptions = [5, 10, 25];
1616
simultaneousDownloads = 2;
1717
downloadMethod = 'GET';
18-
preprocessHashModule = false;
19-
preprocessHashEnabled = true;
18+
preprocessHashEnabled = false;
19+
preprocessHashChecked = true;
2020
preprocessHashTarget = 'https://httpbin.org';
2121
preprocessHashMethod = 'GET';
2222
preprocessHashParameterName = 'hash';
@@ -26,7 +26,7 @@ export class CoreAppConfig {
2626
getTarget = function (request, params) {
2727
let target;
2828

29-
if (request === 'preprocessHash' && this.preprocessHashEnabled) {
29+
if (request === 'preprocessHash' && this.preprocessHashChecked) {
3030
target = this.preprocessHashTarget;
3131
}
3232

0 commit comments

Comments
 (0)