oak-general-business/es/features/style.js

17 lines
370 B
JavaScript

import { Feature } from 'oak-frontend-base';
export class Style extends Feature {
cache;
constructor(cache) {
super();
this.cache = cache;
}
async updateStyle(entity, entityId, style) {
await this.cache.exec('updateStyle', {
entity,
entityId,
style,
});
this.publish();
}
}