💬 change misleading automatic bug-report text (#453)

* 💬  change misleading automatic bug-report text

* Add github issue link
This commit is contained in:
Matiss Janis Aboltins
2023-01-14 17:29:19 +00:00
committed by GitHub
parent 918b80bec5
commit 3424e0eea6

View File

@@ -46,6 +46,8 @@ export function listenForSyncEvent(actions, store) {
let notif = null;
let learnMore =
'[Learn more](https://actualbudget.github.io/docs/Getting-Started/sync#debugging-sync-issues)';
const githubIssueLink =
'https://github.com/actualbudget/actual/issues/new?assignees=&labels=bug%2Cneeds+triage&template=bug-report.yml&title=%5BBug%5D%3A+';
switch (subtype) {
case 'out-of-sync':
@@ -235,9 +237,7 @@ export function listenForSyncEvent(actions, store) {
break;
case 'apply-failure':
notif = {
message:
"We couldn't apply that change to the database. This is a bug, " +
'and it has been reported.'
message: `We couldn't apply that change to the database. Please report this as a bug by [opening a Github issue](${githubIssueLink}).`
};
break;
case 'beta-version':
@@ -246,9 +246,7 @@ export function listenForSyncEvent(actions, store) {
break;
default:
notif = {
message:
'We had problems syncing your changes. This is a bug, ' +
'and it has been reported.'
message: `We had problems syncing your changes. Please report this as a bug by [opening a Github issue](${githubIssueLink}).`
};
}