We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f2f8c0 commit 3b42c56Copy full SHA for 3b42c56
1 file changed
src/lib/cmp.js
@@ -224,8 +224,9 @@ export default class Cmp {
224
* Trigger the consent tool UI to be shown
225
*/
226
showConsentTool: (_, callback = () => {}) => {
227
+ const self = this;
228
let _command;
- switch (this.config.layout) {
229
+ switch (self.config.layout) {
230
case 'footer':
231
_command = 'toggleFooterConsentToolShowing';
232
break;
@@ -236,8 +237,9 @@ export default class Cmp {
236
237
_command = 'toggleConsentToolShowing';
238
}
239
- this.cmpShown = true;
240
- this.store[_command](true);
+ self.cmpShown = true;
241
+ self.store[_command](true);
242
+ self.notify("consentToolDisplayed");
243
callback(true);
244
},
245
0 commit comments