mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +00:00
refactor: delete project
This commit is contained in:
committed by
Carlos Valente
parent
21454947e0
commit
ad0e821cc0
@@ -36,6 +36,11 @@ class AppState {
|
||||
return this.config.data;
|
||||
}
|
||||
|
||||
async isLastLoadedProject(projectName: string): Promise<boolean> {
|
||||
const lastLoaded = await this.getLastLoadedProject();
|
||||
return lastLoaded === projectName;
|
||||
}
|
||||
|
||||
async getLastLoadedProject(): Promise<string> {
|
||||
const data = await this.get();
|
||||
return data.lastLoadedProject;
|
||||
|
||||
Reference in New Issue
Block a user