@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
19 lines • 802 B
JavaScript
import { BaseProductCommand } from "./BaseProductCommand";
import { NotImplementedException } from "@aurigma/design-atoms-model/Exception";
export class ApplyProductThemeCommand extends BaseProductCommand {
constructor(historyArgs, product, args, _productThemeManager, _commandManager) {
super(product, historyArgs, args);
this._productThemeManager = _productThemeManager;
this._commandManager = _commandManager;
}
async _executeCommandBody() {
return this._productThemeManager.applyProductTheme(this._args.theme, this._product, this._commandManager);
}
redo() {
throw new NotImplementedException();
}
undo() {
throw new NotImplementedException();
}
}
//# sourceMappingURL=ApplyProductThemeCommand.js.map