From 5ccd2b02d1f4d3cf6b7df2c24fa4453f8f0e5bca Mon Sep 17 00:00:00 2001 From: UKDTOM Date: Sun, 17 Jan 2021 22:23:00 +0100 Subject: [PATCH] Fixed #219 --- CHANGELOG.md | 1 + src/components/modules/ExportTools/Custom/custom.vue | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf9ad6e..ddcff26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * [#213 AutoUpdate Notification Ignore](https://github.com/WebTools-NG/WebTools-NG/issues/213) * [#216 PMS Module and check boxes](https://github.com/WebTools-NG/WebTools-NG/issues/216) * [#186 After creating a custom level, I need to select this custom level in the drop down](https://github.com/WebTools-NG/WebTools-NG/issues/186) +* [#219 ET Custom Lever only show fields when editing a level](https://github.com/WebTools-NG/WebTools-NG/issues/219) ## V0.1.11 diff --git a/src/components/modules/ExportTools/Custom/custom.vue b/src/components/modules/ExportTools/Custom/custom.vue index c5c2ce0..fa07fd1 100644 --- a/src/components/modules/ExportTools/Custom/custom.vue +++ b/src/components/modules/ExportTools/Custom/custom.vue @@ -220,8 +220,7 @@ options.push(option); }); item['options']=options; - this.optionsLevels = options; - this.fieldList = et.getAllFields( {libType: this.selMediaType}); + this.optionsLevels = options; }, addNewLevel(){ // Hide Modal box @@ -296,7 +295,9 @@ // Triggers when lib type is changed this.genExportLevels(); this.btnDeleteEnabled = false; - this.resultList = []; + this.resultList = []; + this.selCustLevel = ""; + this.fieldList = []; }, deleteCustomLevel() { log.info(`User confirmed to delete custom level: ${this.selCustLevel}`); @@ -341,7 +342,8 @@ } this.resultList = []; await this.genExportLevels(); - this.getCustomLevel(); + this.getCustomLevel(); + this.fieldList = et.getAllFields( {libType: this.selMediaType}); } } };