Skip to content

Commit a7fd525

Browse files
Remove email links
1 parent 833b787 commit a7fd525

File tree

6 files changed

+6
-20
lines changed

6 files changed

+6
-20
lines changed

JournalApp/Components/JaMessageBox.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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 />

JournalApp/Data/Feedback.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,5 @@
22

33
public 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
}

JournalApp/Pages/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
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()

JournalApp/Pages/SettingsPage.razor

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ else
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

@@ -57,8 +57,7 @@ else
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>

JournalApp/Resources/Graphics/business_card.svg

Lines changed: 1 addition & 1 deletion
Loading

JournalApp/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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>

0 commit comments

Comments
 (0)