Skip to content

Commit

Permalink
Fix JS linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyadair committed Jun 11, 2023
1 parent 235512b commit cf455cf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @odoo-module **/
const {onMounted, onRendered, useRef, useState} = owl;
import {standardFieldProps} from "@web/views/fields/standard_field_props";
import {registry} from "@web/core/registry";
import {BooleanField} from "@web/views/fields/boolean/boolean_field";
import {registry} from "@web/core/registry";
import {standardFieldProps} from "@web/views/fields/standard_field_props";

export class BooleanButtonField extends BooleanField {
setup() {
@@ -17,7 +17,7 @@ export class BooleanButtonField extends BooleanField {
});
}

onChange(ev) {
onChange() {
this.state1.value++;
}

@@ -47,7 +47,7 @@ BooleanButtonField.props = {
inactiveString: {type: String, optional: true},
};

BooleanButtonField.extractProps = ({attrs, field}) => {
BooleanButtonField.extractProps = ({attrs}) => {
return {
activeString: attrs.options.active,
inactiveString: attrs.options.inactive,

0 comments on commit cf455cf

Please sign in to comment.