Skip to content

Commit

Permalink
webhook forward: update labels & add success message on save
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy authored and janteuber committed Feb 20, 2025
1 parent 5a13ab2 commit 460e1ba
Show file tree
Hide file tree
Showing 32 changed files with 38 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,17 @@ export default {
this.notificationTargetRepository.save(this.notificationTarget, Shopware.Context.api).then(() => {
this.isLoading = false;
this.isSaveSuccessful = true;
this.createNotificationSuccess({
message: this.$tc(
'payonePayment.notificationTarget.messages.successfullySaved'
),
});

if (this.notificationTargetId === null) {
this.$router.push({ name: 'payone.notification.target.detail', params: { id: this.notificationTarget.id } });
this.$router.push({
name: 'payone.notification.target.detail',
params: {id: this.notificationTarget.id}
});
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"payonePayment": {
"notificationTarget": {
"module": {
"title": "Payone Notificationweiterleitungen",
"buttonTitle": "Notifications"
"title": "PAYONE Webhook-Weiterleitungen",
"buttonTitle": "Webhook Weiterleitungen"
},
"list": {
"title": "Notificationweiterleitungen",
"title": "Webhook Weiterleitungen",
"empty": "Keine Einträge",
"buttonCreate": "Weiterleitungsziel anlegen"
},
"detail": {
"headline": "Notificationweiterleitung",
"headline": "Webhook-Weiterleitung",
"placeholder": {
"url": "Url",
"username": "Benutzer",
Expand All @@ -36,7 +36,8 @@
"requeue": "Erneut senden"
},
"messages": {
"success": "Die Weiterleitung wurde erfolgreich in Auftrag gegeben."
"success": "Die Weiterleitung wurde erfolgreich in Auftrag gegeben.",
"successfullySaved": "Das Weiterleitungsziel wurde erfolgreich gespeichert."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"payonePayment": {
"notificationTarget": {
"module": {
"title": "Payone notification forward",
"buttonTitle": "Notifications"
"title": "PAYONE webhook forward",
"buttonTitle": "Webhook forwards"
},
"list": {
"title": "Notification forward",
"title": "Webhook forward",
"empty": "No entries",
"buttonCreate": "Add new notification target"
"buttonCreate": "Add new forward target"
},
"detail": {
"headline": "Notification forward",
"headline": "Webhook forward",
"placeholder": {
"url": "Url",
"username": "Username",
Expand All @@ -36,7 +36,8 @@
"requeue": "Requeue"
},
"messages": {
"success": "The notification forward has been successfully queued."
"success": "The notification forward has been successfully queued.",
"successfullySaved": "The forwarding target has been saved successfully."
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Resources/public/administration/css/payone-payment.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/Resources/public/administration/js/payone-payment.js
100755 → 100644

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion src/Resources/public/static/js/319b3325013fab2d6905.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 460e1ba

Please sign in to comment.