File tree Expand file tree Collapse file tree 6 files changed +6
-20
lines changed
Expand file tree Collapse file tree 6 files changed +6
-20
lines changed Original file line number Diff line number Diff line change 2626 <DialogActions >
2727 @if (ShowFeedbackLink )
2828 {
29- <MudLink Href =" @( Feedback.GenerateLink(body: $ " \ " {Message}\ " " )) " Typo =" Typo.inherit" >Send feedback .. . </MudLink >
29+ <MudLink Href =@ Feedback.NewGitHubIssue " Typo=" Typo.inherit " >Send feedback</MudLink>
3030 }
3131
3232 <MudSpacer />
Original file line number Diff line number Diff line change 22
33public static class Feedback
44{
5- public static readonly string Email = "DCAppHelp@outlook.com" ;
65 public static readonly string NewGitHubIssue = "https://github.com/danielchalmers/JournalApp/issues/new" ;
7-
8- public static string GenerateLink ( string subject = null , string body = null )
9- {
10- var deviceInfo = DeviceInfo . Current ;
11- var deviceInfoString = $ "{ ThisAssembly . AssemblyInformationalVersion } | { deviceInfo . Platform } { deviceInfo . VersionString } | { deviceInfo . Manufacturer } { deviceInfo . Model } ";
12-
13- subject = $ "Good Diary: " + subject ;
14-
15- body += "%0D%0A" + deviceInfoString + "%0D%0A" ;
16-
17- return $ "mailto:{ Email } ?subject={ subject } &body=%0D%0A{ body } ". Replace ( " " , "%20" ) ;
18- }
196}
Original file line number Diff line number Diff line change 270270 async Task OpenFeedback ()
271271 {
272272 logger .LogInformation (" Opening feedback link" );
273- await Browser .OpenAsync (Feedback .GenerateLink () );
273+ await Browser .OpenAsync (Feedback .NewGitHubIssue );
274274 }
275275
276276 async Task OpenShare ()
Original file line number Diff line number Diff line change 3737 <MudCheckBox @bind-Value =" PreferenceService.HideNotes" aria-label =" Hide the notes section on the home page" >Hide " Today's notes" </MudCheckBox >
3838
3939 <MudButton StartIcon =" @Icons.Material.Rounded.HealthAndSafety" OnClick =" SetUpSafetyPlan" Variant =" Variant.Outlined" FullWidth >
40- Set Up Safety Plan
40+ Set up Safety Plan
4141 </MudButton >
4242 </section >
4343
5757 <MudCopyText Text =" @($" Good Diary {ThisAssembly.AssemblyInformationalVersion} " )" />
5858 <MudCopyText Text =" @($" {DeviceInfo.Current.Platform} {DeviceInfo.Current.VersionString} " )" />
5959
60- <MudLink Href =" @(Feedback.GenerateLink())" >Send feedback by email </MudLink >
61- <MudLink Href =" https://github.com/danielchalmers/JournalApp/issues" >Send feedback on GitHub </MudLink >
60+ <MudLink Href =" https://github.com/danielchalmers/JournalApp/issues/new" >Submit feedbacl </MudLink >
6261 <MudLink Href =" https://play.google.com/store/apps/details?id=com.danielchalmers.journalapp" >View on Play Store </MudLink >
6362 <MudLink Href =" https://github.com/danielchalmers/JournalApp" >View source code </MudLink >
6463 </section >
Original file line number Diff line number Diff line change 2626 < div id ="blazor-error-ui ">
2727 < b > An error occurred.</ b >
2828 < a href ="" class ="reload "> Reload</ a >
29- < a href ="mailto:DCAppHelp@outlook .com " class ="feedback "> Feedback</ a >
29+ < a href ="https://github .com/danielchalmers/JournalApp/issues/new " class ="feedback "> Feedback</ a >
3030 </ div >
3131
3232 < script src ="_framework/blazor.webview.js " autostart ="false "> </ script >
You can’t perform that action at this time.
0 commit comments