Skip to content

Commit

Permalink
Merge pull request #46 from humanswitch/dev
Browse files Browse the repository at this point in the history
release: 0.7.1
  • Loading branch information
StevenChoo authored May 24, 2018
2 parents 6e895a6 + adc70bf commit e2e4f43
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/consentcookie.min.js

Large diffs are not rendered by default.

Binary file modified dist/consentcookie.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ConsentCookie",
"version": "0.7.0",
"version": "0.7.1",
"license": "Apache 2.0",
"author": "HumanSwitch",
"description": "A Javascript application for for managing consents in your browser",
Expand Down
6 changes: 5 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ function on($event, $callback) {
*/
function get($id) {
if (!$id) {
return getConsents();
// Backwards compatibility fix
return (($consents) => {
$consents.consents = $consents.getConsentMap();
return $consents;
})(getConsents());
}
return getConsent($id);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/applications/ccApplicationSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
},
accepted: {
get() {
return this.$services.applications.isAccepted(this.application);
return this.$services.applications.isEnabled(this.application);
},
set($newVal) {
this.$services.applications.setAccepted(this.application, $newVal);
Expand Down
6 changes: 6 additions & 0 deletions src/services/applicationsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ function getActive() {
return activeApplications;
}

function isEnabled($application){
return vue.$services.consent.getConsent($application.id)
.isEnabled();
}

function isAccepted($application) {
return vue.$services.consent.getConsent($application.id)
.isAccepted();
Expand Down Expand Up @@ -196,6 +201,7 @@ module.exports = {
getActive,
getApplicationProfile,
getApplicationProfileInfo,
isEnabled,
isAlwaysOn,
isAccepted,
setAccepted,
Expand Down

0 comments on commit e2e4f43

Please sign in to comment.