2017-10-15 04:23:40 +00:00
|
|
|
/*jslint es6: true, this: true*/
|
|
|
|
/*global window, Vue*/
|
|
|
|
(function () {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Vue.component("logging-settings", {
|
|
|
|
props: ["shouldLog"],
|
|
|
|
template: `
|
|
|
|
<div class="logging-settings">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox"
|
|
|
|
v-model="shouldLog"
|
|
|
|
@change="shouldLogChanged">
|
2017-10-15 13:02:08 +00:00
|
|
|
|
2017-10-15 04:23:40 +00:00
|
|
|
Log blocked functionality?
|
2017-10-15 13:02:08 +00:00
|
|
|
|
|
|
|
<p class="help-block">
|
|
|
|
Enabling logging will print information about each
|
|
|
|
blocked method to the console, for each domain.
|
|
|
|
</p>
|
2017-10-15 04:23:40 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`,
|
|
|
|
methods: {
|
|
|
|
shouldLogChanged: function () {
|
|
|
|
this.$root.$data.setShouldLog(this.shouldLog);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}());
|