Commit c39c674d authored by Andi Staub's avatar Andi Staub
Browse files

Move cssPrefix to parent

parent 228839c3
Pipeline #10420 passed with stage
in 21 seconds
......@@ -6,10 +6,6 @@ class PanEmployeesGraph extends StatelessWebComponent {
return ['data'];
}
get cssPrefix() {
return 'Employees';
}
template() {
return `
<style>
......
......@@ -67,10 +67,6 @@ class PanSalariesGraph extends StatelessWebComponent {
return 100 - value;
}
get cssPrefix() {
return 'Salaries';
}
template() {
return this.salaries && `
<style>
......
......@@ -6,6 +6,10 @@ export default class StatelessWebComponent extends HTMLElement {
this.setupGetters();
}
get cssPrefix() {
return this.constructor.name;
}
template() {
throw new Error(`This method needs an implementation.
Please overwrite it in the inheriting class.`);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment