Skip to content

Commit

Permalink
Merge pull request #70 from Nosto/SSP-31
Browse files Browse the repository at this point in the history
SSP-31 Add a warning when changing the configuration for the nosto identifier
  • Loading branch information
supercid authored Sep 2, 2024
2 parents 2e83ccc + 905302a commit 10f1149
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Mixin.register('nosto-integration-config-component', {
},
},

mixins: [
Mixin.getByName('notification'),
],

computed: {
...mapState('nostoIntegrationConfig', [
'configs',
Expand All @@ -29,6 +33,12 @@ Mixin.register('nosto-integration-config-component', {
'setConfigValue',
]),
onUpdateValue(key, value) {
if (key === 'productIdentifier') {
this.createNotificationWarning({
message: this.$tc('nosto.configuration.featuresFlags.productIdentifierMerchantInfo'),
});
}

this.setConfigValue({
configKey: this.configKey,
key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"enableAlternateImages": "Alternative Bilder aktivieren",
"enableAlternateImagesHelpText": "Das Kontrollkästchen aktiviert das Tagging alternativer Bilder.",
"productIdentifier": "Produkt-Identifikator",
"productIdentifierMerchantInfo": "Das Wechseln zwischen 'Produkt-ID' und 'Produktnummer' führt zu doppelten Produkten, wenn eine Produktsynchronisierung bereits durchgeführt wurde. Um dieses Problem zu vermeiden, wenden Sie sich bitte an den Nosto-Support, um den Produkt Katalog zu leeren, bevor Sie den Synchronisierungsprozess erneut starten.",
"productIdentifierHelpText": "Das ausgewählte Feld des Produkts wird als Nosto-Produkt-ID synchronisiert.",
"enableRatingsReviews": "Bewertungen & Rezensionen aktivieren",
"enableRatingsReviewsHelpText": "Die Auswahl ermöglicht Bewertungen & Rezensionen.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"enableAlternateImages": "Enable Alternate Images",
"enableAlternateImagesHelpText": "The checkbox enables alternate images tagging.",
"productIdentifier": "Product Identifier",
"productIdentifierMerchantInfo": "Switching between 'Product Id' and 'Product Number' will result in product duplication if a product sync has already been completed. To avoid this issue, please contact Nosto Support to flush the catalog before restarting the sync process.",
"productIdentifierHelpText": "The selected field of the product will be synced as Nosto product id",
"enableRatingsReviews": "Enable Ratings & Reviews",
"enableRatingsReviewsHelpText": "The selection enables ratings & reviews.",
Expand Down

Large diffs are not rendered by default.

0 comments on commit 10f1149

Please sign in to comment.