From 35d5a9d1471157b7a616c7f212c42bde04f1be40 Mon Sep 17 00:00:00 2001 From: Teja Manthena Date: Wed, 28 Feb 2024 12:37:25 +0100 Subject: [PATCH 1/7] Display printer presets by default --- .../ezp-printer-selection.tsx | 38 +++++++++++++------ src/shared/types.d.ts | 1 + 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/src/components/ezp-printer-selection/ezp-printer-selection.tsx b/src/components/ezp-printer-selection/ezp-printer-selection.tsx index 34e752f..24fe97e 100644 --- a/src/components/ezp-printer-selection/ezp-printer-selection.tsx +++ b/src/components/ezp-printer-selection/ezp-printer-selection.tsx @@ -80,6 +80,13 @@ export class EzpPrinterSelection { @State() selectedPrinter: Printer @State() printerConfig: PrinterConfig[] @State() selectedPrinterConfig: PrinterConfig = { + Preset: { + Color: '', + Duplex: '', + Paper: '', + Resolution: '', + Tray: '' + }, OrientationsSupported: [], PaperFormats: [], Resolutions: [], @@ -358,7 +365,7 @@ export class EzpPrinterSelection { await this.printService .getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id) .then((data) => (this.selectedPrinterConfig = data[0])) - this.setDefaultPaperFormat() + // this.setDefaultPaperFormat() break case 'color': this.selectedProperties.color = !!eventDetails.id @@ -717,12 +724,12 @@ export class EzpPrinterSelection { } preSelected={ this.selectedPrinter.id - ? this.selectedProperties.color + ? this.selectedPrinterConfig.Preset.Color == "color" ? i18next.t('printer_selection.color_color') : i18next.t('printer_selection.color_grayscale') : null } - disabled={!this.selectedPrinterConfig.Color} + disabled={!this.selectedPrinterConfig.ColorSupported} /> option.id === this.selectedProperties.duplexmode - ).id - : null - } + this.selectedPrinter.id + && this.selectedPrinterConfig.Preset.Duplex == "duplex_simplex" + ? i18next.t('printer_selection.duplex_none') + : this.selectedPrinterConfig.Preset.Duplex == "duplex_vertical" + ? i18next.t('printer_selection.duplex_long') + : this.selectedPrinterConfig.Preset.Duplex == "duplex_horizontal" + ? i18next.t('printer_selection.duplex_short') + : null + } disabled={!this.selectedPrinterConfig.DuplexSupported} /> + el.Name.includes(this.selectedPrinterConfig.Preset.Paper)) ? this.selectedPrinterConfig.Preset.Paper : null} disabled={!(this.selectedPrinterConfig.PaperFormats.length > 0)} /> {this.paperid == PAPER_ID ? ( @@ -806,7 +817,7 @@ export class EzpPrinterSelection { meta: '', type: 'quality', }))} - preSelected={this.selectedPrinter.id ? this.selectedProperties.resolution : null} + preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Resolutions.includes(this.selectedPrinterConfig.Preset.Resolution) ? this.selectedPrinterConfig.Preset.Resolution : null} disabled={!(this.selectedPrinterConfig.Resolutions.length > 0)} /> {this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? ( @@ -821,7 +832,10 @@ export class EzpPrinterSelection { id: trays.Index, meta: '', type: 'tray', - }))} + }) + )} + preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Trays.find((el) => + el.Name.includes(this.selectedPrinterConfig.Preset.Tray)) ? this.selectedPrinterConfig.Preset.Tray : null} /> ) : null} Date: Fri, 1 Mar 2024 08:42:41 +0100 Subject: [PATCH 2/7] changes to fix the null value if properties return null --- .../ezp-printer-selection.tsx | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/ezp-printer-selection/ezp-printer-selection.tsx b/src/components/ezp-printer-selection/ezp-printer-selection.tsx index 24fe97e..f9bee55 100644 --- a/src/components/ezp-printer-selection/ezp-printer-selection.tsx +++ b/src/components/ezp-printer-selection/ezp-printer-selection.tsx @@ -724,7 +724,7 @@ export class EzpPrinterSelection { } preSelected={ this.selectedPrinter.id - ? this.selectedPrinterConfig.Preset.Color == "color" + ? this.selectedPrinterConfig.Preset && this.selectedPrinterConfig.Preset.Color == "color" ? i18next.t('printer_selection.color_color') : i18next.t('printer_selection.color_grayscale') : null @@ -744,11 +744,11 @@ export class EzpPrinterSelection { }))} preSelected={ this.selectedPrinter.id - && this.selectedPrinterConfig.Preset.Duplex == "duplex_simplex" + && this.selectedPrinterConfig.Preset && this.selectedPrinterConfig.Preset.Duplex == "duplex_simplex" ? i18next.t('printer_selection.duplex_none') - : this.selectedPrinterConfig.Preset.Duplex == "duplex_vertical" + : this.selectedPrinterConfig.Preset && this.selectedPrinterConfig.Preset.Duplex == "duplex_vertical" ? i18next.t('printer_selection.duplex_long') - : this.selectedPrinterConfig.Preset.Duplex == "duplex_horizontal" + : this.selectedPrinterConfig.Preset && this.selectedPrinterConfig.Preset.Duplex == "duplex_horizontal" ? i18next.t('printer_selection.duplex_short') : null } @@ -760,15 +760,15 @@ export class EzpPrinterSelection { placeholder={i18next.t('printer_selection.select_size')} toggleFlow="horizontal" optionFlow="horizontal" - options={this.selectedPrinterConfig.PaperFormats.map((format) => ({ + options={this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.map((format) => ({ id: format.Id, title: format.Name, meta: `${format.XRes} x ${format.YRes}`, type: 'format', }))} - preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.PaperFormats.find((el) => + preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.find((el) => el.Name.includes(this.selectedPrinterConfig.Preset.Paper)) ? this.selectedPrinterConfig.Preset.Paper : null} - disabled={!(this.selectedPrinterConfig.PaperFormats.length > 0)} + disabled={!(this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.length > 0)} /> {this.paperid == PAPER_ID ? ( <> @@ -811,30 +811,30 @@ export class EzpPrinterSelection { icon="quality" placeholder={i18next.t('printer_selection.select_quality')} toggleFlow="horizontal" - options={this.selectedPrinterConfig.Resolutions.map((option, index) => ({ + options={this.selectedPrinterConfig.Resolutions && this.selectedPrinterConfig.Resolutions.map((option, index) => ({ id: index, title: option, meta: '', type: 'quality', }))} - preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Resolutions.includes(this.selectedPrinterConfig.Preset.Resolution) ? this.selectedPrinterConfig.Preset.Resolution : null} - disabled={!(this.selectedPrinterConfig.Resolutions.length > 0)} + preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Resolutions && this.selectedPrinterConfig.Resolutions.includes(this.selectedPrinterConfig.Preset.Resolution) ? this.selectedPrinterConfig.Preset.Resolution : null} + disabled={!(this.selectedPrinterConfig.Resolutions && this.selectedPrinterConfig.Resolutions.length > 0)} /> - {this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? ( + {this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? ( = 1 && this.selectedPrinterConfig.Trays.map((trays) => ({ + options={this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays.map((trays) => ({ title: trays.Name, id: trays.Index, meta: '', type: 'tray', }) )} - preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Trays.find((el) => + preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.find((el) => el.Name.includes(this.selectedPrinterConfig.Preset.Tray)) ? this.selectedPrinterConfig.Preset.Tray : null} /> ) : null} Date: Tue, 5 Mar 2024 15:44:43 +0100 Subject: [PATCH 3/7] Add watch to preselected --- src/components/ezp-select/ezp-select.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/ezp-select/ezp-select.tsx b/src/components/ezp-select/ezp-select.tsx index a1942fc..32325c5 100644 --- a/src/components/ezp-select/ezp-select.tsx +++ b/src/components/ezp-select/ezp-select.tsx @@ -115,6 +115,11 @@ export class EzpSelect { } } + @Watch('preSelected') + preSelectedChanged() { + this.preSelect(); + } + /** * * Private methods From 688763a2e15e46a6db9372b2bbdcde6c50a9a5b6 Mon Sep 17 00:00:00 2001 From: Teja Manthena Date: Wed, 6 Mar 2024 11:59:58 +0100 Subject: [PATCH 4/7] UI bug fix & changed Preset to Profile --- .../ezp-printer-selection.tsx | 61 ++++++++++++------- src/components/ezp-select/ezp-select.tsx | 6 +- src/shared/types.d.ts | 3 +- 3 files changed, 45 insertions(+), 25 deletions(-) diff --git a/src/components/ezp-printer-selection/ezp-printer-selection.tsx b/src/components/ezp-printer-selection/ezp-printer-selection.tsx index f9bee55..6ab21a2 100644 --- a/src/components/ezp-printer-selection/ezp-printer-selection.tsx +++ b/src/components/ezp-printer-selection/ezp-printer-selection.tsx @@ -80,10 +80,11 @@ export class EzpPrinterSelection { @State() selectedPrinter: Printer @State() printerConfig: PrinterConfig[] @State() selectedPrinterConfig: PrinterConfig = { - Preset: { + Profile: { Color: '', Duplex: '', Paper: '', + Orientation: '', Resolution: '', Tray: '' }, @@ -310,6 +311,9 @@ export class EzpPrinterSelection { localStorage.setItem('properties', JSON.stringify(this.selectedProperties)) localStorage.setItem('printer', JSON.stringify(this.selectedPrinter)) + // localStorage.removeItem('printer') + // localStorage.removeItem('properties') + this.printStopped = false } @@ -364,8 +368,11 @@ export class EzpPrinterSelection { this.selectedPrinter.is_queue = eventDetails.is_queue await this.printService .getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id) - .then((data) => (this.selectedPrinterConfig = data[0])) - // this.setDefaultPaperFormat() + .then((data) => { + this.selectedPrinterConfig = data[0] + }) + this.setDefaultPaperFormat() + console.log(this.selectedPrinterConfig) break case 'color': this.selectedProperties.color = !!eventDetails.id @@ -510,17 +517,17 @@ export class EzpPrinterSelection { format = 'A4' } - if (this.selectedPrinterConfig.PaperFormats.find((el) => el.Name.includes(format))) { - this.selectedProperties.paper = this.selectedPrinterConfig.PaperFormats.find((el) => + if (this.selectedPrinterConfig.PaperFormats?.find((el) => el.Name.includes(format))) { + this.selectedProperties.paper = this.selectedPrinterConfig.PaperFormats?.find((el) => el.Name.includes(format) ).Name - this.selectedProperties.paperid = this.selectedPrinterConfig.PaperFormats.find((el) => + this.selectedProperties.paperid = this.selectedPrinterConfig.PaperFormats?.find((el) => el.Name.includes(format) ).Id } else { - this.selectedProperties.paper = this.selectedPrinterConfig.PaperFormats[0].Name - this.selectedProperties.paperid = this.selectedPrinterConfig.PaperFormats[0].Id + this.selectedProperties.paper = this.selectedPrinterConfig.PaperFormats[0]?.Name + this.selectedProperties.paperid = this.selectedPrinterConfig.PaperFormats[0]?.Id } this.setPaperid() } @@ -724,7 +731,7 @@ export class EzpPrinterSelection { } preSelected={ this.selectedPrinter.id - ? this.selectedPrinterConfig.Preset && this.selectedPrinterConfig.Preset.Color == "color" + ? this.selectedPrinterConfig.Profile?.Color == "color" ? i18next.t('printer_selection.color_color') : i18next.t('printer_selection.color_grayscale') : null @@ -744,15 +751,15 @@ export class EzpPrinterSelection { }))} preSelected={ this.selectedPrinter.id - && this.selectedPrinterConfig.Preset && this.selectedPrinterConfig.Preset.Duplex == "duplex_simplex" + && this.selectedPrinterConfig.Profile?.Duplex == "duplex_simplex" ? i18next.t('printer_selection.duplex_none') - : this.selectedPrinterConfig.Preset && this.selectedPrinterConfig.Preset.Duplex == "duplex_vertical" + : this.selectedPrinterConfig.Profile?.Duplex == "duplex_vertical" ? i18next.t('printer_selection.duplex_long') - : this.selectedPrinterConfig.Preset && this.selectedPrinterConfig.Preset.Duplex == "duplex_horizontal" + : this.selectedPrinterConfig.Profile?.Duplex == "duplex_horizontal" ? i18next.t('printer_selection.duplex_short') : null - } - disabled={!this.selectedPrinterConfig.DuplexSupported} + } + disabled={!this.selectedPrinterConfig.DuplexSupported || this.selectedPrinterConfig.Profile.Duplex == "simplex" } /> - el.Name.includes(this.selectedPrinterConfig.Preset.Paper)) ? this.selectedPrinterConfig.Preset.Paper : null} - disabled={!(this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.length > 0)} + preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.PaperFormats?.find((el) => + el.Name.includes(this.selectedPrinterConfig.Profile.Paper)) + ? this.selectedPrinterConfig.Profile.Paper + : this.selectedPrinterConfig.Profile.Paper == null + ? this.selectedPrinterConfig.PaperFormats[0]?.Name + : null} + disabled={!(this.selectedPrinterConfig.PaperFormats?.length > 0)} /> {this.paperid == PAPER_ID ? ( <> @@ -817,8 +828,12 @@ export class EzpPrinterSelection { meta: '', type: 'quality', }))} - preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Resolutions && this.selectedPrinterConfig.Resolutions.includes(this.selectedPrinterConfig.Preset.Resolution) ? this.selectedPrinterConfig.Preset.Resolution : null} - disabled={!(this.selectedPrinterConfig.Resolutions && this.selectedPrinterConfig.Resolutions.length > 0)} + preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Resolutions?.includes(this.selectedPrinterConfig.Profile.Resolution) + ? this.selectedPrinterConfig.Profile.Resolution + : this.selectedPrinterConfig.Profile.Resolution == null + ? this.selectedPrinterConfig.Resolutions[0] + : null} + disabled={!(this.selectedPrinterConfig.Resolutions?.length > 0)} /> {this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? ( - el.Name.includes(this.selectedPrinterConfig.Preset.Tray)) ? this.selectedPrinterConfig.Preset.Tray : null} + preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Trays?.find((el) => + el.Name.includes(this.selectedPrinterConfig.Profile.Tray)) + ? this.selectedPrinterConfig.Profile.Tray + : this.selectedPrinterConfig.Profile.Tray == null + ? this.selectedPrinterConfig.Trays[0]?.Name + : null} /> ) : null} { - this.selected = this.options.find((option) => + this.selected = this.options?.find((option) => typeof this.preSelected === 'number' ? option.id === this.preSelected : typeof this.preSelected === 'string' @@ -190,7 +190,7 @@ export class EzpSelect { componentWillUpdate() { if ( - this.selected.id === false && + this.selected?.id === false && this.preSelected !== undefined && this.preSelected !== '' && this.preSelected !== null @@ -229,7 +229,7 @@ export class EzpSelect {
(this.list = element)}> - {this.options.map((option) => { + {this.options?.map((option) => { if (option.title !== '') { return (
Date: Wed, 6 Mar 2024 14:34:35 +0100 Subject: [PATCH 5/7] Minor changes --- .../ezp-printer-selection.tsx | 31 ++++++------------- src/components/ezp-select/ezp-select.tsx | 6 ++-- 2 files changed, 13 insertions(+), 24 deletions(-) diff --git a/src/components/ezp-printer-selection/ezp-printer-selection.tsx b/src/components/ezp-printer-selection/ezp-printer-selection.tsx index 6ab21a2..4c73012 100644 --- a/src/components/ezp-printer-selection/ezp-printer-selection.tsx +++ b/src/components/ezp-printer-selection/ezp-printer-selection.tsx @@ -27,7 +27,7 @@ export class EzpPrinterSelection { private sasUri = '' private fileExtension = '' private printService: EzpPrintService - private duplexOptions = [ + public duplexOptions = [ { id: 1, title: i18next.t('printer_selection.duplex_none'), @@ -311,9 +311,6 @@ export class EzpPrinterSelection { localStorage.setItem('properties', JSON.stringify(this.selectedProperties)) localStorage.setItem('printer', JSON.stringify(this.selectedPrinter)) - // localStorage.removeItem('printer') - // localStorage.removeItem('properties') - this.printStopped = false } @@ -369,9 +366,9 @@ export class EzpPrinterSelection { await this.printService .getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id) .then((data) => { - this.selectedPrinterConfig = data[0] + this.selectedPrinterConfig = {...this.selectedPrinterConfig, ...data[0]} }) - this.setDefaultPaperFormat() + // this.setDefaultPaperFormat() console.log(this.selectedPrinterConfig) break case 'color': @@ -743,23 +740,21 @@ export class EzpPrinterSelection { icon="duplex" placeholder={i18next.t('printer_selection.select_duplex')} toggleFlow="horizontal" - options={this.duplexOptions.map((option) => ({ + options={this.duplexOptions?.map((option) => ({ id: option.id, title: option.title, meta: '', type: 'duplex', }))} preSelected={ - this.selectedPrinter.id - && this.selectedPrinterConfig.Profile?.Duplex == "duplex_simplex" + this.selectedPrinter.id && this.selectedPrinterConfig.Profile?.Duplex == "duplex_simplex" ? i18next.t('printer_selection.duplex_none') : this.selectedPrinterConfig.Profile?.Duplex == "duplex_vertical" ? i18next.t('printer_selection.duplex_long') : this.selectedPrinterConfig.Profile?.Duplex == "duplex_horizontal" ? i18next.t('printer_selection.duplex_short') - : null - } - disabled={!this.selectedPrinterConfig.DuplexSupported || this.selectedPrinterConfig.Profile.Duplex == "simplex" } + : null} + disabled={!this.selectedPrinterConfig.DuplexSupported} /> - el.Name.includes(this.selectedPrinterConfig.Profile.Paper)) - ? this.selectedPrinterConfig.Profile.Paper - : this.selectedPrinterConfig.Profile.Paper == null - ? this.selectedPrinterConfig.PaperFormats[0]?.Name + el.Name.includes(this.selectedPrinterConfig.Profile?.Paper)) + ? this.selectedPrinterConfig.Profile?.Paper : null} disabled={!(this.selectedPrinterConfig.PaperFormats?.length > 0)} /> @@ -822,7 +815,7 @@ export class EzpPrinterSelection { icon="quality" placeholder={i18next.t('printer_selection.select_quality')} toggleFlow="horizontal" - options={this.selectedPrinterConfig.Resolutions && this.selectedPrinterConfig.Resolutions.map((option, index) => ({ + options={this.selectedPrinterConfig.Resolutions?.map((option, index) => ({ id: index, title: option, meta: '', @@ -830,8 +823,6 @@ export class EzpPrinterSelection { }))} preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Resolutions?.includes(this.selectedPrinterConfig.Profile.Resolution) ? this.selectedPrinterConfig.Profile.Resolution - : this.selectedPrinterConfig.Profile.Resolution == null - ? this.selectedPrinterConfig.Resolutions[0] : null} disabled={!(this.selectedPrinterConfig.Resolutions?.length > 0)} /> @@ -852,8 +843,6 @@ export class EzpPrinterSelection { preSelected={this.selectedPrinter.id && this.selectedPrinterConfig.Trays?.find((el) => el.Name.includes(this.selectedPrinterConfig.Profile.Tray)) ? this.selectedPrinterConfig.Profile.Tray - : this.selectedPrinterConfig.Profile.Tray == null - ? this.selectedPrinterConfig.Trays[0]?.Name : null} /> ) : null} { - const delay = this.selected.id === id ? 0 : this.duration * 1000 + const delay = this.selected?.id === id ? 0 : this.duration * 1000 this.selected = this.options.find((option) => option.id === id) this.selectSelection.emit(this.selected) @@ -224,7 +224,7 @@ export class EzpSelect {
@@ -233,7 +233,7 @@ export class EzpSelect { if (option.title !== '') { return (
this.select(option.id)} From 205c861b837442866ed0f3f46d0eda5b22dac663 Mon Sep 17 00:00:00 2001 From: Teja Manthena Date: Wed, 6 Mar 2024 14:36:49 +0100 Subject: [PATCH 6/7] removed console --- src/components/ezp-printer-selection/ezp-printer-selection.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/ezp-printer-selection/ezp-printer-selection.tsx b/src/components/ezp-printer-selection/ezp-printer-selection.tsx index 4c73012..b76c07b 100644 --- a/src/components/ezp-printer-selection/ezp-printer-selection.tsx +++ b/src/components/ezp-printer-selection/ezp-printer-selection.tsx @@ -369,7 +369,6 @@ export class EzpPrinterSelection { this.selectedPrinterConfig = {...this.selectedPrinterConfig, ...data[0]} }) // this.setDefaultPaperFormat() - console.log(this.selectedPrinterConfig) break case 'color': this.selectedProperties.color = !!eventDetails.id From 5f7e5e230dd7a0bc5a31d6a87877ad7664228d7a Mon Sep 17 00:00:00 2001 From: Teja Manthena Date: Thu, 7 Mar 2024 14:20:41 +0100 Subject: [PATCH 7/7] The setting for Page Range in Print Now is not reset after printing --- .../ezp-printer-selection/ezp-printer-selection.tsx | 4 ++-- src/components/ezp-upload/ezp-upload.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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'); } /**