Skip to content

Commit

Permalink
Msi 2182 source entity expansion with pickup location attributes.
Browse files Browse the repository at this point in the history
Fixed jscs tests
  • Loading branch information
Maksym Novik committed May 23, 2019
1 parent 3b64018 commit e276996
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)));
},
Expand Down

0 comments on commit e276996

Please sign in to comment.