Skip to content

Commit

Permalink
Merge pull request #61 from keyoke/keyoke/features
Browse files Browse the repository at this point in the history
Keyoke/features
  • Loading branch information
keyoke authored Oct 27, 2021
2 parents 50bb8d3 + be7123d commit e668593
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/block-duplicate-observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,19 @@ class duplicateObserver implements IWorkItemNotificationListener {
);

// Get current value for setting
const includeTitle: boolean = await dataManager.getValue<boolean>(
let includeTitle: boolean = await dataManager.getValue<boolean>(
'IncludeTitle',
{
scopeType: 'Default',
}
);

if (includeTitle == null) {
includeTitle = await dataManager.setValue<boolean>('IncludeTitle', true, {
scopeType: 'Default',
});
}

return includeTitle;
}

Expand All @@ -296,13 +302,23 @@ class duplicateObserver implements IWorkItemNotificationListener {
);

// Get current value for setting
const includeDesciption: boolean = await dataManager.getValue<boolean>(
let includeDesciption: boolean = await dataManager.getValue<boolean>(
'IncludeDesciption',
{
scopeType: 'Default',
}
);

if (includeDesciption == null) {
includeDesciption = await dataManager.setValue<boolean>(
'IncludeDesciption',
true,
{
scopeType: 'Default',
}
);
}

return includeDesciption;
}

Expand Down

0 comments on commit e668593

Please sign in to comment.