From 186ec297484d37bd3b3a8b6a71b49c118f80e37e Mon Sep 17 00:00:00 2001 From: Felix van Hove Date: Sun, 23 Mar 2025 17:00:29 +0100 Subject: [PATCH] fix: Improve "create and edit template" functionality (#2339) The button label got corrected, the form can't be submitted anymore without all required fields filled out. Two Typescript modules got merged, because they were almost identical. The routing module got updated to reflect the new component. FIXES: WEB-65 --- .../create-edit-template.component.html} | 24 ++- .../create-edit-template.component.scss | 0 .../create-edit-template.component.spec.ts | 0 .../create-edit-template.component.ts} | 116 +++++++---- .../create-template.component.scss | 10 - .../create-template.component.spec.ts | 24 --- .../edit-template.component.html | 146 -------------- .../edit-template.component.scss | 10 - .../edit-template.component.spec.ts | 24 --- .../edit-template/edit-template.component.ts | 181 ------------------ src/app/templates/templates-routing.module.ts | 19 +- src/app/templates/templates.module.ts | 6 +- src/assets/translations/cs-CS.json | 2 +- src/assets/translations/de-DE.json | 2 +- src/assets/translations/en-US.json | 2 +- src/assets/translations/es-CL.json | 2 +- src/assets/translations/es-MX.json | 2 +- src/assets/translations/fr-FR.json | 2 +- src/assets/translations/it-IT.json | 2 +- src/assets/translations/ko-KO.json | 2 +- src/assets/translations/lt-LT.json | 2 +- src/assets/translations/lv-LV.json | 2 +- src/assets/translations/ne-NE.json | 2 +- src/assets/translations/pt-PT.json | 2 +- src/assets/translations/sw-SW.json | 2 +- 25 files changed, 121 insertions(+), 465 deletions(-) rename src/app/templates/{create-template/create-template.component.html => create-edit-template/create-edit-template.component.html} (88%) create mode 100644 src/app/templates/create-edit-template/create-edit-template.component.scss create mode 100644 src/app/templates/create-edit-template/create-edit-template.component.spec.ts rename src/app/templates/{create-template/create-template.component.ts => create-edit-template/create-edit-template.component.ts} (62%) delete mode 100644 src/app/templates/create-template/create-template.component.scss delete mode 100644 src/app/templates/create-template/create-template.component.spec.ts delete mode 100644 src/app/templates/edit-template/edit-template.component.html delete mode 100644 src/app/templates/edit-template/edit-template.component.scss delete mode 100644 src/app/templates/edit-template/edit-template.component.spec.ts delete mode 100644 src/app/templates/edit-template/edit-template.component.ts diff --git a/src/app/templates/create-template/create-template.component.html b/src/app/templates/create-edit-template/create-edit-template.component.html similarity index 88% rename from src/app/templates/create-template/create-template.component.html rename to src/app/templates/create-edit-template/create-edit-template.component.html index 5685bae96..35fd73f12 100644 --- a/src/app/templates/create-template/create-template.component.html +++ b/src/app/templates/create-edit-template/create-edit-template.component.html @@ -6,7 +6,7 @@ {{ 'labels.inputs.Entity' | translate }} - + {{ entity.name }} @@ -19,7 +19,7 @@ {{ 'labels.inputs.Type' | translate }} - + {{ type.name }} @@ -43,18 +43,18 @@
- + {{ 'labels.inputs.Mapper Key' | translate }} - + {{ 'labels.inputs.Mapper Value' | translate }} @@ -83,7 +83,15 @@
- + +
@@ -152,7 +160,9 @@ - +
diff --git a/src/app/templates/create-edit-template/create-edit-template.component.scss b/src/app/templates/create-edit-template/create-edit-template.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/src/app/templates/create-edit-template/create-edit-template.component.spec.ts b/src/app/templates/create-edit-template/create-edit-template.component.spec.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/app/templates/create-template/create-template.component.ts b/src/app/templates/create-edit-template/create-edit-template.component.ts similarity index 62% rename from src/app/templates/create-template/create-template.component.ts rename to src/app/templates/create-edit-template/create-edit-template.component.ts index 3b5e04d6a..97b96d581 100644 --- a/src/app/templates/create-template/create-template.component.ts +++ b/src/app/templates/create-edit-template/create-edit-template.component.ts @@ -16,11 +16,11 @@ import { TemplatesService } from '../templates.service'; * Create Template Component. */ @Component({ - selector: 'mifosx-create-template', - templateUrl: './create-template.component.html', - styleUrls: ['./create-template.component.scss'] + selector: 'mifosx-create-edit-template', + templateUrl: './create-edit-template.component.html', + styleUrls: ['./create-edit-template.component.scss'] }) -export class CreateTemplateComponent implements OnInit { +export class CreateEditComponent implements OnInit { /** CKEditor5 */ public Editor = ClassicEditor; /** CKEditor5 Template Reference */ @@ -28,12 +28,14 @@ export class CreateTemplateComponent implements OnInit { /** Template form. */ templateForm: UntypedFormGroup; - /** Create Template Data. */ - createTemplateData: any; + /** Create or Edit Template Data. */ + templateData: any; /** Template Mappers */ mappers: any[] = []; - /** Toggles Visibility of Advance Options */ + /** Toggles Visibility of Advanced Options */ showAdvanceOptions = false; + /** mode */ + mode: 'create' | 'edit'; /** Client Parameter Labels */ clientParameterLabels: string[] = clientParameterLabels; @@ -55,8 +57,16 @@ export class CreateTemplateComponent implements OnInit { private router: Router, private templateService: TemplatesService ) { - this.route.data.subscribe((data: { createTemplateData: any }) => { - this.createTemplateData = data.createTemplateData; + this.route.data.subscribe((data: { templateData: any; mode: 'create' | 'edit' }) => { + this.templateData = data.templateData; + this.mode = data.mode; + if (this.mode === 'edit') { + this.mappers = this.templateData.template.mappers.map((mapper: any) => ({ + mappersorder: mapper.mapperorder, + mapperskey: new UntypedFormControl(mapper.mapperkey), + mappersvalue: new UntypedFormControl(mapper.mappervalue) + })); + } }); } @@ -69,20 +79,45 @@ export class CreateTemplateComponent implements OnInit { * Creates the template form. */ createTemplateForm() { - this.templateForm = this.formBuilder.group({ - entity: [ - '', - Validators.required - ], - type: [ - '', - Validators.required - ], - name: [ - '', - Validators.required - ] - }); + if (this.mode === 'create') { + this.templateForm = this.formBuilder.group({ + entity: [ + '', + Validators.required + ], + type: [ + '', + Validators.required + ], + name: [ + '', + Validators.required + ], + text: [ + '', + Validators.required + ] + }); + } else { + this.templateForm = this.formBuilder.group({ + entity: [ + this.templateData.entities.find((entity: any) => entity.name === this.templateData.template.entity).id, + Validators.required + ], + type: [ + this.templateData.types.find((type: any) => type.name === this.templateData.template.type).id, + Validators.required + ], + name: [ + this.templateData.template.name, + Validators.required + ], + text: [ + this.templateData.template.text, + Validators.required + ] + }); + } } /** @@ -108,7 +143,9 @@ export class CreateTemplateComponent implements OnInit { } this.setEditorContent(''); }); - this.templateForm.get('entity').patchValue(0); + if (this.mode === 'create') { + this.templateForm.get('entity').patchValue(0); + } } /** @@ -164,8 +201,13 @@ export class CreateTemplateComponent implements OnInit { return ''; } + onEditorChange(event: any) { + const editorContent = event.editor.getData(); + this.templateForm.get('text').setValue(editorContent); + } + /** - * Creates a template. + * Submits a template. */ submit() { const template: any = { @@ -177,14 +219,20 @@ export class CreateTemplateComponent implements OnInit { })), text: this.getEditorContent() }; - this.templateService.createTemplate(template).subscribe((response: any) => { - this.router.navigate( - [ - '../', - response.resourceId - ], - { relativeTo: this.route } - ); - }); + if (this.mode === 'create') { + this.templateService.createTemplate(template).subscribe((response: any) => { + this.router.navigate( + [ + '../', + response.resourceId + ], + { relativeTo: this.route } + ); + }); + } else { + this.templateService.updateTemplate(template, this.templateData.template.id).subscribe(() => { + this.router.navigate(['../'], { relativeTo: this.route }); + }); + } } } diff --git a/src/app/templates/create-template/create-template.component.scss b/src/app/templates/create-template/create-template.component.scss deleted file mode 100644 index 61eb6fed4..000000000 --- a/src/app/templates/create-template/create-template.component.scss +++ /dev/null @@ -1,10 +0,0 @@ -.container { - .mapper-button { - max-height: 2.25rem; - margin-top: 1rem; - } - - .parameter { - margin: 1%; - } -} diff --git a/src/app/templates/create-template/create-template.component.spec.ts b/src/app/templates/create-template/create-template.component.spec.ts deleted file mode 100644 index 87bd27343..000000000 --- a/src/app/templates/create-template/create-template.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { CreateTemplateComponent } from './create-template.component'; - -describe('CreateTemplateComponent', () => { - let component: CreateTemplateComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [CreateTemplateComponent] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(CreateTemplateComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/templates/edit-template/edit-template.component.html b/src/app/templates/edit-template/edit-template.component.html deleted file mode 100644 index 6e7bd3f49..000000000 --- a/src/app/templates/edit-template/edit-template.component.html +++ /dev/null @@ -1,146 +0,0 @@ -
- -
- -
- - {{ 'labels.inputs.Entity' | translate }} - - - {{ entity.name }} - - - - - - {{ 'labels.inputs.Type' | translate }} - - - {{ type.name }} - - - - - - {{ 'labels.inputs.name' | translate }} - - -
-
-
- -
- -
- - -
- - {{ 'labels.inputs.Mapper Key' | translate }} - - - - - {{ 'labels.inputs.Mapper Value' | translate }} - - - - - -
-
- -
- -
- -
- - - - - {{ 'labels.inputs.Client Parameters' | translate }} - - - -
- -
-
- - - - - {{ 'labels.inputs.Loan Parameters' | translate }} - - - -
- -
-
- - - - - {{ 'labels.inputs.Repayment Schedule Parameters' | translate }} - - - -
- -
-
-
-
- - - - - -
-
diff --git a/src/app/templates/edit-template/edit-template.component.scss b/src/app/templates/edit-template/edit-template.component.scss deleted file mode 100644 index 61eb6fed4..000000000 --- a/src/app/templates/edit-template/edit-template.component.scss +++ /dev/null @@ -1,10 +0,0 @@ -.container { - .mapper-button { - max-height: 2.25rem; - margin-top: 1rem; - } - - .parameter { - margin: 1%; - } -} diff --git a/src/app/templates/edit-template/edit-template.component.spec.ts b/src/app/templates/edit-template/edit-template.component.spec.ts deleted file mode 100644 index 0914e9714..000000000 --- a/src/app/templates/edit-template/edit-template.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { EditTemplateComponent } from './edit-template.component'; - -describe('EditTemplateComponent', () => { - let component: EditTemplateComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [EditTemplateComponent] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EditTemplateComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/templates/edit-template/edit-template.component.ts b/src/app/templates/edit-template/edit-template.component.ts deleted file mode 100644 index 29ea71ccf..000000000 --- a/src/app/templates/edit-template/edit-template.component.ts +++ /dev/null @@ -1,181 +0,0 @@ -/** Angular Imports */ -import { Component, OnInit, ViewChild } from '@angular/core'; -import { UntypedFormGroup, UntypedFormBuilder, UntypedFormControl } from '@angular/forms'; -import { Router, ActivatedRoute } from '@angular/router'; - -/** CKEditor5 Imports */ -import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic'; - -/** Custom Imports */ -import { clientParameterLabels, loanParameterLabels, repaymentParameterLabels } from '../template-parameter-labels'; - -/** Custom Services */ -import { TemplatesService } from '../templates.service'; - -/** - * Edit Template Component. - */ -@Component({ - selector: 'mifosx-edit-template', - templateUrl: './edit-template.component.html', - styleUrls: ['./edit-template.component.scss'] -}) -export class EditTemplateComponent implements OnInit { - /** CKEditor5 */ - public Editor = ClassicEditor; - /** CKEditor5 Template Reference */ - @ViewChild('ckEditor', { static: true }) ckEditor: any; - - /** Template form. */ - templateForm: UntypedFormGroup; - /** Edit Template Data. */ - editTemplateData: any; - /** Template Mappers */ - mappers: any[] = []; - /** Toggles Visibility of Advance Options */ - showAdvanceOptions = false; - - /** Client Parameter Labels */ - clientParameterLabels: string[] = clientParameterLabels; - /** Loan Parameter Labels */ - loanParameterLabels: string[] = loanParameterLabels; - /** Repayment Parameter Labels */ - repaymentParameterLabels: string[] = repaymentParameterLabels; - - /** - * Retrieves the template data from `resolve`. - * @param {FormBuilder} formBuilder Form Builder. - * @param {ActivatedRoute} route Activated Route. - * @param {Router} router Router for navigation. - * @param {TemplateService} templateService Templates Service - */ - constructor( - private formBuilder: UntypedFormBuilder, - private route: ActivatedRoute, - private router: Router, - private templateService: TemplatesService - ) { - this.route.data.subscribe((data: { editTemplateData: any }) => { - this.editTemplateData = data.editTemplateData; - this.mappers = this.editTemplateData.template.mappers.map((mapper: any) => ({ - mappersorder: mapper.mapperorder, - mapperskey: new UntypedFormControl(mapper.mapperkey), - mappersvalue: new UntypedFormControl(mapper.mappervalue) - })); - }); - } - - ngOnInit() { - this.createTemplateForm(); - this.buildDependencies(); - } - - /** - * Creates the template form. - */ - createTemplateForm() { - this.templateForm = this.formBuilder.group({ - entity: [ - this.editTemplateData.entities.find((entity: any) => entity.name === this.editTemplateData.template.entity).id - ], - type: [this.editTemplateData.types.find((type: any) => type.name === this.editTemplateData.template.type).id], - name: [this.editTemplateData.template.name] - }); - } - - /** - * Subscribe to value changes of entity to set default mapper. - */ - buildDependencies() { - const tenantIdentifier = 'default'; // update once global settings are setup. - this.templateForm.get('entity').valueChanges.subscribe((value: any) => { - if (value === 0) { - // client - this.mappers.splice(0, 1, { - mappersorder: 0, - mapperskey: new UntypedFormControl('client'), - mappersvalue: new UntypedFormControl('clients/{{clientId}}?tenantIdentifier=' + tenantIdentifier) - }); - } else { - // loan - this.mappers.splice(0, 1, { - mappersorder: 0, - mapperskey: new UntypedFormControl('loan'), - mappersvalue: new UntypedFormControl('loans/{{loanId}}?associations=all&tenantIdentifier=' + tenantIdentifier) - }); - } - this.setEditorContent(''); - }); - } - - /** - * Adds a mapper. - */ - addMapper() { - this.mappers.push({ - mappersorder: this.mappers.length, - mapperskey: new UntypedFormControl(''), - mappersvalue: new UntypedFormControl('') - }); - } - - /** - * Removes a mapper - * @param {any} index Mapper Index - */ - removeMapper(index: any) { - this.mappers.splice(index, 1); - } - - /** - * Adds text to CKEditor at cursor position. - * @param {string} label Template parameter label. - */ - addText(label: string) { - if (this.ckEditor && this.ckEditor.editorInstance) { - this.ckEditor.editorInstance.model.change((writer: any) => { - const insertPosition = this.ckEditor.editorInstance.model.document.selection.getFirstPosition(); - writer.insertText(label, insertPosition); - }); - } - } - - /** - * Gets the contents of CKEditor. - */ - getEditorContent() { - if (this.ckEditor && this.ckEditor.editorInstance) { - return this.ckEditor.editorInstance.getData(); - } - return ''; - } - - /** - * Sets the contents of CKEditor. - * @param {string} content Editor Content - */ - setEditorContent(content: string) { - if (this.ckEditor && this.ckEditor.editorInstance) { - return this.ckEditor.editorInstance.setData(content); - } - return ''; - } - - /** - * Edits an existing template. - */ - submit() { - const template: any = { - ...this.templateForm.value, - mappers: this.mappers.map((mapper: any) => ({ - mappersorder: mapper.mappersorder, - mapperskey: mapper.mapperskey.value, - mappersvalue: mapper.mappersvalue.value - })), - text: this.getEditorContent() - }; - this.templateService.updateTemplate(template, this.editTemplateData.template.id).subscribe(() => { - this.router.navigate(['../'], { relativeTo: this.route }); - }); - } -} diff --git a/src/app/templates/templates-routing.module.ts b/src/app/templates/templates-routing.module.ts index 0d861c6ea..b663726d5 100644 --- a/src/app/templates/templates-routing.module.ts +++ b/src/app/templates/templates-routing.module.ts @@ -8,8 +8,7 @@ import { Route } from '../core/route/route.service'; /** Custom Components */ import { TemplatesComponent } from './templates.component'; import { ViewTemplateComponent } from './view-template/view-template.component'; -import { EditTemplateComponent } from './edit-template/edit-template.component'; -import { CreateTemplateComponent } from './create-template/create-template.component'; +import { CreateEditComponent } from './create-edit-template/create-edit-template.component'; /** Custom Resolvers */ import { TemplatesResolver } from './common-resolvers/templates.resolver'; @@ -33,11 +32,9 @@ const routes: Routes = [ }, { path: 'create', - data: { title: 'Create Template', breadcrumb: 'Create Template' }, - component: CreateTemplateComponent, - resolve: { - createTemplateData: CreateTemplateResolver - } + component: CreateEditComponent, + data: { mode: 'create', breadcrumb: 'Create Template' }, + resolve: { templateData: CreateTemplateResolver } }, { path: ':id', @@ -52,11 +49,9 @@ const routes: Routes = [ }, { path: 'edit', - component: EditTemplateComponent, - data: { title: 'Edit Template', breadcrumb: 'Edit', routeParamBreadcrumb: false }, - resolve: { - editTemplateData: EditTemplateResolver - } + component: CreateEditComponent, + data: { mode: 'edit', breadcrumb: 'Edit', routeParamBreadcrumb: false }, + resolve: { templateData: EditTemplateResolver } } ] } diff --git a/src/app/templates/templates.module.ts b/src/app/templates/templates.module.ts index d74c64f7d..bb1ce6bce 100644 --- a/src/app/templates/templates.module.ts +++ b/src/app/templates/templates.module.ts @@ -10,8 +10,7 @@ import { TemplatesRoutingModule } from './templates-routing.module'; /** Custom Components */ import { TemplatesComponent } from './templates.component'; import { ViewTemplateComponent } from './view-template/view-template.component'; -import { EditTemplateComponent } from './edit-template/edit-template.component'; -import { CreateTemplateComponent } from './create-template/create-template.component'; +import { CreateEditComponent } from './create-edit-template/create-edit-template.component'; /** * Templates Module @@ -28,8 +27,7 @@ import { CreateTemplateComponent } from './create-template/create-template.compo declarations: [ TemplatesComponent, ViewTemplateComponent, - EditTemplateComponent, - CreateTemplateComponent + CreateEditComponent ] }) export class TemplatesModule {} diff --git a/src/assets/translations/cs-CS.json b/src/assets/translations/cs-CS.json index 3ff364c13..6ac0f8672 100644 --- a/src/assets/translations/cs-CS.json +++ b/src/assets/translations/cs-CS.json @@ -315,7 +315,7 @@ "Add Slab": "Přidejte desku", "Add/Edit": "Přidat/Upravit", "Adjustment": "Nastavení", - "Advance Options": "Pokročilé možnosti", + "Advanced Options": "Pokročilé možnosti", "Allocate Cash": "Přidělte hotovost", "Applications": "Aplikace", "Approve": "Schvalovat", diff --git a/src/assets/translations/de-DE.json b/src/assets/translations/de-DE.json index 35786a0f4..78fb87342 100644 --- a/src/assets/translations/de-DE.json +++ b/src/assets/translations/de-DE.json @@ -315,7 +315,7 @@ "Add Slab": "Platte hinzufügen", "Add/Edit": "Hinzufügen/Bearbeiten", "Adjustment": "Einstellung", - "Advance Options": "Erweiterte Optionen", + "Advanced Options": "Erweiterte Optionen", "Allocate Cash": "Bargeld zuweisen", "Applications": "Anwendungen", "Approve": "Genehmigen", diff --git a/src/assets/translations/en-US.json b/src/assets/translations/en-US.json index 5e878b4d3..a6dcfd0e3 100644 --- a/src/assets/translations/en-US.json +++ b/src/assets/translations/en-US.json @@ -316,7 +316,7 @@ "Add Slab": "Add Slab", "Add/Edit": "Add/Edit", "Adjustment": "Adjustment", - "Advance Options": "Advance Options", + "Advanced Options": "Advanced Options", "Allocate Cash": "Allocate Cash", "Applications": "Applications", "Approve": "Approve", diff --git a/src/assets/translations/es-CL.json b/src/assets/translations/es-CL.json index 1a62dd241..d0ba6c2f3 100644 --- a/src/assets/translations/es-CL.json +++ b/src/assets/translations/es-CL.json @@ -315,7 +315,7 @@ "Add Slab": "Agregar Rango de Montos", "Add/Edit": "Agregar/Editar", "Adjustment": "Ajustamiento", - "Advance Options": "Opciones Avanzadas", + "Advanced Options": "Opciones Avanzadas", "Allocate Cash": "Asignar Efectivo", "Applications": "Solicitudes", "Approve": "Aprobar", diff --git a/src/assets/translations/es-MX.json b/src/assets/translations/es-MX.json index 1cf2050a0..4ba2e6e74 100644 --- a/src/assets/translations/es-MX.json +++ b/src/assets/translations/es-MX.json @@ -315,7 +315,7 @@ "Add Slab": "Agregar Rango de Montos", "Add/Edit": "Agregar/Editar", "Adjustment": "Ajustamiento", - "Advance Options": "Opciones Avanzadas", + "Advanced Options": "Opciones Avanzadas", "Allocate Cash": "Asignar Efectivo", "Applications": "Solicitudes", "Approve": "Aprobar", diff --git a/src/assets/translations/fr-FR.json b/src/assets/translations/fr-FR.json index 2eaccde16..073f15a64 100644 --- a/src/assets/translations/fr-FR.json +++ b/src/assets/translations/fr-FR.json @@ -315,7 +315,7 @@ "Add Slab": "Ajouter une dalle", "Add/Edit": "Ajouter/Modifier", "Adjustment": "Ajustement", - "Advance Options": "Options avancées", + "Advanced Options": "Options avancées", "Allocate Cash": "Allouer de l'argent", "Applications": "Applications", "Apply Changes": "Appliquer les modifications", diff --git a/src/assets/translations/it-IT.json b/src/assets/translations/it-IT.json index 99e1f7f61..0dcba4d2d 100644 --- a/src/assets/translations/it-IT.json +++ b/src/assets/translations/it-IT.json @@ -315,7 +315,7 @@ "Add Slab": "Aggiungi lastra", "Add/Edit": "Aggiungi/Modifica", "Adjustment": "Regolazione", - "Advance Options": "Opzioni avanzate", + "Advanced Options": "Opzioni avanzate", "Allocate Cash": "Assegnare contanti", "Applications": "Applicazioni", "Apply Changes": "Applica i cambiamenti", diff --git a/src/assets/translations/ko-KO.json b/src/assets/translations/ko-KO.json index 3ebac7d9f..8af66aba2 100644 --- a/src/assets/translations/ko-KO.json +++ b/src/assets/translations/ko-KO.json @@ -315,7 +315,7 @@ "Add Slab": "슬래브 추가", "Add/Edit": "추가/수정", "Adjustment": "조정", - "Advance Options": "고급 옵션", + "Advanced Options": "고급 옵션", "Allocate Cash": "현금 할당", "Applications": "응용", "Apply Changes": "변경 승인", diff --git a/src/assets/translations/lt-LT.json b/src/assets/translations/lt-LT.json index c972968ec..77e5884d6 100644 --- a/src/assets/translations/lt-LT.json +++ b/src/assets/translations/lt-LT.json @@ -315,7 +315,7 @@ "Add Slab": "Pridėti plokštę", "Add/Edit": "Pridėti / redaguoti", "Adjustment": "Koregavimas", - "Advance Options": "Išankstinės parinktys", + "Advanced Options": "Išankstinės parinktys", "Allocate Cash": "Paskirstykite grynuosius pinigus", "Applications": "Programos", "Apply Changes": "Taikyti pakeitimus", diff --git a/src/assets/translations/lv-LV.json b/src/assets/translations/lv-LV.json index 6550c15f0..77278a252 100644 --- a/src/assets/translations/lv-LV.json +++ b/src/assets/translations/lv-LV.json @@ -315,7 +315,7 @@ "Add Slab": "Pievienot plāksni", "Add/Edit": "Pievienot/rediģēt", "Adjustment": "Pielāgošana", - "Advance Options": "Papildu opcijas", + "Advanced Options": "Papildu opcijas", "Allocate Cash": "Piešķirt skaidru naudu", "Applications": "Lietojumprogrammas", "Apply Changes": "Lietot izmaiņas", diff --git a/src/assets/translations/ne-NE.json b/src/assets/translations/ne-NE.json index 0f9e37d4e..921058c29 100644 --- a/src/assets/translations/ne-NE.json +++ b/src/assets/translations/ne-NE.json @@ -315,7 +315,7 @@ "Add Slab": "स्लैब थप्नुहोस्", "Add/Edit": "थप्नुहोस्/सम्पादन गर्नुहोस्", "Adjustment": "समायोजन", - "Advance Options": "अग्रिम विकल्प", + "Advanced Options": "अग्रिम विकल्प", "Allocate Cash": "नगद आवंटित गर्नुहोस्", "Applications": "अनुप्रयोगहरू", "Apply Changes": "परिवर्तनहरू लागू गर्नुहोस्", diff --git a/src/assets/translations/pt-PT.json b/src/assets/translations/pt-PT.json index 98acdcfed..45258da28 100644 --- a/src/assets/translations/pt-PT.json +++ b/src/assets/translations/pt-PT.json @@ -315,7 +315,7 @@ "Add Slab": "Adicionar laje", "Add/Edit": "Adicionar/Editar", "Adjustment": "Ajustamento", - "Advance Options": "Opções avançadas", + "Advanced Options": "Opções avançadas", "Allocate Cash": "Alocar dinheiro", "Applications": "Formulários", "Apply Changes": "Aplicar mudanças", diff --git a/src/assets/translations/sw-SW.json b/src/assets/translations/sw-SW.json index c519a9b02..54413df7e 100644 --- a/src/assets/translations/sw-SW.json +++ b/src/assets/translations/sw-SW.json @@ -315,7 +315,7 @@ "Add Slab": "Ongeza Slab", "Add/Edit": "Ongeza/Hariri", "Adjustment": "Marekebisho", - "Advance Options": "Chaguzi za Mapema", + "Advanced Options": "Chaguzi za Mapema", "Allocate Cash": "Tenga Pesa", "Applications": "Maombi", "Apply Changes": "Tekeleza Mabadiliko",