File tree Expand file tree Collapse file tree
cider-app/src/app/site-content-and-menu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ export class SiteContentAndMenuComponent implements OnInit {
133133 icon : 'pi pi-pw pi-database' ,
134134 items : [
135135 {
136+ label : 'Reload Project from Disk' ,
137+ icon : 'pi pi-pw pi-folder' ,
138+ visible : this . electronService . isElectron ( ) ,
139+ command : ( ) => this . reloadProjectProcedure ( )
140+ } , {
136141 label : 'Reset Database' ,
137142 icon : 'pi pi-pw pi-database' ,
138143 command : ( ) => this . openResetDialog ( )
@@ -417,6 +422,16 @@ export class SiteContentAndMenuComponent implements OnInit {
417422 } ) ;
418423 }
419424
425+ private async reloadProjectProcedure ( ) {
426+ const projectHomeUrl = await firstValueFrom ( this . electronService . getProjectHomeUrl ( ) ) ;
427+ if ( ! projectHomeUrl ) {
428+ console . log ( 'No project directory open.' ) ;
429+ this . saveProjectAs ( ) ;
430+ return ;
431+ }
432+ this . openProjectProcedure ( projectHomeUrl ) ;
433+ }
434+
420435 private openProjectProcedure ( url : string ) {
421436 this . loadingIndeterminate = true ;
422437 this . loadingHeader = 'Opening Project' ;
You can’t perform that action at this time.
0 commit comments