allure-commandline
Advanced tools
Comparing version 2.1.1 to 2.2.1
(function () { | ||
var settings = allure.getPluginSettings('screen-diff', {diffType: 'diff'}); | ||
function renderImage(src) { | ||
@@ -48,8 +50,5 @@ return '<div class="screen-diff__container">' + | ||
}, | ||
initialize: function () { | ||
this.diffType = 'diff'; | ||
}, | ||
templateContext: function () { | ||
return { | ||
diffType: this.diffType | ||
diffType: settings.get('diffType') | ||
} | ||
@@ -80,4 +79,5 @@ }, | ||
onRender: function () { | ||
this.$('[name="screen-diff-type"][value="' + this.diffType + '"]').prop('checked', true); | ||
if (this.diffType === 'overlay') { | ||
const diffType = settings.get('diffType'); | ||
this.$('[name="screen-diff-type"][value="' + diffType + '"]').prop('checked', true); | ||
if (diffType === 'overlay') { | ||
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this)); | ||
@@ -94,3 +94,3 @@ } | ||
onDiffTypeChange: function (event) { | ||
this.diffType = event.target.value; | ||
settings.save('diffType', event.target.value); | ||
this.render(); | ||
@@ -97,0 +97,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "2.1.1", | ||
"version": "2.2.1", | ||
"description": "Wrapper to install Allure-commandline via NPM", | ||
@@ -9,0 +9,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7746304
237