Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default {

support: {
header: 'Support Ukraine',
lead: 'Cash Track team supports Ukraine by making donation to various fundraising initiatives. As ukrainians it is our responsibility to work hard and make everything depends on us to help our country survive. Join us.',
lead: 'Cash Track team contributes to various fundraising initiatives. As ukrainians it is our responsibility to work hard and make everything depends on us to help our country survive. Join us.',
help: 'How to help?'
},

Expand Down
2 changes: 1 addition & 1 deletion lang/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default {

support: {
header: 'Підтримуйте Україну',
lead: 'Команда Cash Track підтримує Україну за допомогою донатів на численні ініціативи збору коштів. Це наша відповідальність - важко працювати та робити все, що від нас залежить, щоб допомогти нашій країні вижити. Приєднуйтесь до нас.',
lead: 'Команда Cash Track не стоїть осторонь, а вносить свій вклад в численні ініціативи збору коштів. Це наша відповідальність - важко працювати та робити все, що від нас залежить, щоб допомогти нашій країні вижити. Приєднуйтесь до нас.',
help: 'Як допомогти?'
},

Expand Down
7 changes: 7 additions & 0 deletions shared/Messager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export class Messager {
case 403:
this.onForbiddenResponse(error.data)
break
case 417:
this.onCsrfErrorResponse()
break
case 422:
this.onUnprocessableEntityResponse(error.data)
break
Expand All @@ -78,6 +81,10 @@ export class Messager {
this.setMessage(response.message)
}

protected onCsrfErrorResponse() {
window.location.reload()
}

protected onUnprocessableEntityResponse(
_response: ValidationResponseInterface
) {
Expand Down