diff --git a/src/components/ezp-printer-selection/ezp-printer-selection.tsx b/src/components/ezp-printer-selection/ezp-printer-selection.tsx index b76c07b..33db3ac 100644 --- a/src/components/ezp-printer-selection/ezp-printer-selection.tsx +++ b/src/components/ezp-printer-selection/ezp-printer-selection.tsx @@ -411,7 +411,7 @@ export class EzpPrinterSelection { case 'paper_ranges': this.selectedProperties.PageRanges = eventDetails.value; this.pageRangeInvalid = !validatePageRange(this.selectedProperties.PageRanges); - + localStorage.setItem('pageRanges', JSON.stringify(this.selectedProperties.PageRanges)); // console.log(this.selectedProperties.PageRanges) break case 'duplex': @@ -848,7 +848,7 @@ export class EzpPrinterSelection { icon="paper_range" suffix="" placeholder="1-2,4-5,8" - value={this.selectedProperties.PageRanges} + value={localStorage.getItem('pageRanges') ? this.selectedProperties.PageRanges : ''} eventType="paper_ranges" type="text" label={i18next.t('printer_selection.page_ranges')} diff --git a/src/components/ezp-upload/ezp-upload.tsx b/src/components/ezp-upload/ezp-upload.tsx index e76c3eb..a428e30 100644 --- a/src/components/ezp-upload/ezp-upload.tsx +++ b/src/components/ezp-upload/ezp-upload.tsx @@ -74,6 +74,7 @@ export class EzpUpload { private handleInput = () => { this.filename = this.input.files[0].name this.uploadFile.emit(this.input.files) + localStorage.removeItem('pageRanges'); } /**