Skip to content

Commit

Permalink
translation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Nov 20, 2023
1 parent 82a71c8 commit a3b897f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 300 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ export class CDSDetailCommunityComponent implements OnInit {


// =========== NOTIFY ERROR ===========
this.notify.showWidgetStyleUpdateNotification(this.translationsMap.get('UpdateBotError'), 4, 'report_problem');
this.notify.showWidgetStyleUpdateNotification(this.translationsMap.get('CDSSetting.UpdateBotError'), 4, 'report_problem');

}, () => {
this.logger.log('[CDS-CHATBOT-DTLS] EDIT BOT - * COMPLETE *');
// =========== NOTIFY SUCCESS===========
this.notify.showWidgetStyleUpdateNotification(this.translationsMap.get('UpdateBotSuccess'), 2, 'done');
this.notify.showWidgetStyleUpdateNotification(this.translationsMap.get('CDSSetting.UpdateBotSuccess'), 2, 'done');
this.selectedChatbot.name
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ export class CDSDetailBotDetailComponent extends BotsBaseComponent implements On
this.logger.error('[CDS-CHATBOT-DTLS] EDIT BOT - ERROR ', error);

// =========== NOTIFY ERROR ===========
this.notify.showWidgetStyleUpdateNotification(this.translationsMap.get('UpdateBotError'), 4, 'report_problem');
this.notify.showWidgetStyleUpdateNotification(this.translationsMap.get('CDSSetting.UpdateBotError'), 4, 'report_problem');

}, complete: () => {
this.logger.log('[CDS-CHATBOT-DTLS] EDIT BOT - * COMPLETE *');
// =========== NOTIFY SUCCESS===========
this.notify.showWidgetStyleUpdateNotification(this.translationsMap.get('UpdateBotSuccess'), 2, 'done');
this.notify.showWidgetStyleUpdateNotification(this.translationsMap.get('CDSSetting.UpdateBotSuccess'), 2, 'done');
this.selectedChatbot.name
}});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class CDSDetailImportExportComponent implements OnInit {
}, (error) => {
this.logger.error('[TILEBOT] - IMPORT CHATBOT FROM JSON- ERROR', error);

this.notify.showWidgetStyleUpdateNotification("thereHasBeenAnErrorProcessing", 4, 'report_problem');
this.notify.showWidgetStyleUpdateNotification("CDSSetting.ThereHasBeenAnErrorProcessing", 4, 'report_problem');
}, () => {
this.logger.log('[TILEBOT] - IMPORT CHATBOT FROM JSON - COMPLETE');
});
Expand Down Expand Up @@ -145,10 +145,10 @@ export class CDSDetailImportExportComponent implements OnInit {
}, (error) => {
this.logger.error('[TILEBOT] - IMPORT INTENTS FROM JSON- ERROR', error);

this.notify.showWidgetStyleUpdateNotification("thereHasBeenAnErrorProcessing", 4, 'report_problem');
this.notify.showWidgetStyleUpdateNotification("CDSSetting.ThereHasBeenAnErrorProcessing", 4, 'report_problem');
}, () => {
this.logger.log('[TILEBOT] - IMPORT INTENTS FROM JSON - * COMPLETE *');
this.notify.showWidgetStyleUpdateNotification("File was uploaded succesfully", 2, 'done');
this.notify.showWidgetStyleUpdateNotification("CDSSetting.FileUploadedSuccessfully", 2, 'done');

this.onCloseImportJSONModal();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export class CdsHeaderComponent implements OnInit {
public dialog: MatDialog,
public appConfigService: AppConfigService,
private multichannelService: MultichannelService,
private notify: NotifyService,
private dashboardService: DashboardService,
private intentService: IntentService,
private tiledeskAuthService: TiledeskAuthService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class CdsPublishOnCommunityModalComponent implements OnInit {
this.showSpinnerInUploadImageBtn = true;
const file = event.target.files[0]

this.uploadService.upload(this.selectedChatbot._id, file).then((downloadUrl)=> {
this.uploadService.uploadProfile(this.selectedChatbot._id, file).then((downloadUrl)=> {
this.logger.log('[CDS-CHATBOT-DTLS] BOT PROFILE IMAGE upload with native service - RES downoloadurl', downloadUrl);

this.selectedChatbot.url = downloadUrl
Expand Down Expand Up @@ -292,7 +292,7 @@ export class CdsPublishOnCommunityModalComponent implements OnInit {
}, () => {

this.logger.log('[PUBLISH-ON-COMMUNITY-MODAL-COMPONENT] publishOnCommunity * COMPLETE * ');
this.notify.showWidgetStyleUpdateNotification('Successfully deployed', 2, 'done');
this.notify.showWidgetStyleUpdateNotification('CDSSetting.SuccessfullyDeployed', 2, 'done');
this.dialogRef.close('has-published-on-cmnty');

});
Expand Down
Loading

0 comments on commit a3b897f

Please sign in to comment.