mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
17 lines
348 B
JavaScript
17 lines
348 B
JavaScript
import BaseAction from "./BaseAction";
|
|
|
|
class AttributeAction extends BaseAction {
|
|
|
|
run(status) {
|
|
|
|
if (status) {
|
|
jQuery(this.config.selector).addClass(this.config.html_class);
|
|
} else {
|
|
jQuery(this.config.selector).removeClass(this.config.html_class);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default AttributeAction;
|