Generalized table to not depend on project id
This commit is contained in:
@@ -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 }
|
||||
|
Reference in New Issue
Block a user