From e276996bf8e1f692bbebf971bb175eb0ce2762d8 Mon Sep 17 00:00:00 2001 From: Maksym Novik Date: Thu, 23 May 2019 14:43:41 +0300 Subject: [PATCH] Msi 2182 source entity expansion with pickup location attributes. Fixed jscs tests --- .../view/adminhtml/web/js/form/components/fieldset.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/InventoryInStorePickupAdminUi/view/adminhtml/web/js/form/components/fieldset.js b/app/code/Magento/InventoryInStorePickupAdminUi/view/adminhtml/web/js/form/components/fieldset.js index 2ef0e184ea0e..ac53eb13aa1b 100644 --- a/app/code/Magento/InventoryInStorePickupAdminUi/view/adminhtml/web/js/form/components/fieldset.js +++ b/app/code/Magento/InventoryInStorePickupAdminUi/view/adminhtml/web/js/form/components/fieldset.js @@ -9,7 +9,7 @@ define([ 'use strict'; /** - * @TODO Remove when issue will be resolved in core. + * TODO Remove when issue will be resolved in core. * @see Please check issue in core for more details: https://github.com/magento/magento2/issues/22067. */ return Fieldset.extend(ko).extend( @@ -19,14 +19,21 @@ define([ */ initialize: function () { this._super(); - + // eslint-disable-next-line vars-on-top var visible = ko.observable(this.visible()); this.visible = ko.computed({ + /** + * @returns {Boolean} + */ read: function () { return visible(); }, + + /** + * @param {String} value + */ write: function (value) { visible(Boolean(parseInt(value, 0))); },