1
1
import { App , Notice , Plugin , PluginSettingTab , Setting , TFile } from 'obsidian' ;
2
2
import { requestUrl , RequestUrlParam } from 'obsidian' ;
3
- import { DirSuggest } from 'suggest' ;
3
+ import { DirSuggest } from 'suggest' ;
4
4
5
5
6
6
interface GitHubPluginSettings {
@@ -556,13 +556,13 @@ class GitHubSettingTab extends PluginSettingTab {
556
556
try {
557
557
new DirSuggest ( this . app , cb . inputEl ) ;
558
558
} catch ( e ) {
559
- new Notice ( e . toString ( ) , 3000 ) ;
559
+ new Notice ( e . toString ( ) , 3000 ) ;
560
560
}
561
561
cb . setPlaceholder ( 'Example: dir1/dir2' )
562
562
. setValue ( this . plugin . settings . targetDirectory )
563
563
. onChange ( async ( dir ) => {
564
564
this . plugin . settings . targetDirectory = dir ;
565
- await this . plugin . saveSettings ( ) ;
565
+ await this . plugin . saveSettings ( ) ;
566
566
} ) ;
567
567
} ) ;
568
568
@@ -571,13 +571,9 @@ class GitHubSettingTab extends PluginSettingTab {
571
571
lastFetchDate = new Date ( this . plugin . settings . lastFetchDate ) . toLocaleString ( ) ;
572
572
}
573
573
574
- new Setting ( containerEl )
575
- . setName ( 'Last star fetch' )
576
- . setDesc ( `Stars were last fetched on: ${ lastFetchDate } ` ) ;
577
-
578
574
new Setting ( containerEl )
579
575
. setName ( 'Force fetch stars' )
580
- . setDesc ( 'Manually trigger re-fetching starred repositories' )
576
+ . setDesc ( `Re-fetch all starred repos. Last fetched on: ${ lastFetchDate } ` )
581
577
. addButton ( button => button
582
578
. setButtonText ( 'Fetch stars' )
583
579
. setCta ( )
@@ -620,13 +616,10 @@ class GitHubSettingTab extends PluginSettingTab {
620
616
if ( this . plugin . settings . lastPRFetchDate ) {
621
617
lastPRFetchDate = new Date ( this . plugin . settings . lastPRFetchDate ) . toLocaleString ( ) ;
622
618
}
623
- new Setting ( containerEl )
624
- . setName ( 'Last PR fetch' )
625
- . setDesc ( `Pull requests were last fetched on: ${ lastPRFetchDate } ` ) ;
626
619
627
620
new Setting ( containerEl )
628
621
. setName ( 'Force fetch pull requests' )
629
- . setDesc ( 'Manually trigger re-fetching all pull requests' )
622
+ . setDesc ( `Re-fetch all Pull Requests. Last fetched on: ${ lastPRFetchDate } ` )
630
623
. addButton ( button => button
631
624
. setButtonText ( 'Fetch PRs' )
632
625
. setCta ( )
0 commit comments