Generalized table to not depend on project id

This commit is contained in:
2019-03-15 10:18:23 +01:00
parent ace091c998
commit 58ff236a99
3 changed files with 5 additions and 22 deletions

View File

@@ -2,11 +2,6 @@
* Provides the columns that are available in a table.
*/
class ColumnFactoryBase{
constructor(projectId) {
this.projectId = projectId;
this.projectPromise;
}
/**
* To be overridden for your purposes
* @returns {Promise(ColumnBase)} The columns that are available in the table.
@@ -14,14 +9,6 @@ class ColumnFactoryBase{
thenGetColumns() {
throw Error('Not implemented')
}
thenGetProject() {
if (this.projectPromise) {
return this.projectPromise;
}
this.projectPromise = pillar.api.thenGetProject(this.projectId);
return this.projectPromise;
}
}
export { ColumnFactoryBase }