Unverified Commit 64b17965 authored by Ruslan Konviser's avatar Ruslan Konviser Committed by GitHub
Browse files

Merge pull request #1112 from ever-co/fix/#981-manage-store-empty-input-fields

fix: manage store empty input fields after save
parents 1e13c6ee 2799f1a1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ export class WarehouseManageComponent implements OnInit {
				paymentGateways: tabsInfoRaw.paymentsGateways,
			};

			const username = this.tabsForm.value.account['username'];
			const passwordOld = tabsInfoRaw.password.current;
			const passwordNew = tabsInfoRaw.password.new;

@@ -100,6 +101,14 @@ export class WarehouseManageComponent implements OnInit {
			this._showWarehouseUpdateSuccessMessage(warehouse);

			this.warehouseManageTabs.warehouseUpdateFinish();
			this.warehouseManageTabs.accountComponent.form.setValue({
				username: username,
				password: {
					confirm: '',
					current: '',
					new: '',
				},
			});
		} catch (err) {
			this.loading = false;
			this.toasterService.pop(