mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3561] Fix form action buttons translation (#3920)
* [ADF-3561] Fix form action buttons translation * [ADF-3561] Fix unit test * [ADF-3561] Change Key to complete form button in translation file
This commit is contained in:
committed by
Eugenio Romano
parent
38f4916e06
commit
b630869f6c
@@ -79,7 +79,7 @@ describe('FormComponent', () => {
|
||||
});
|
||||
|
||||
it('should return primary color for complete button', () => {
|
||||
expect(formComponent.getColorForOutcome('Complete')).toBe('primary');
|
||||
expect(formComponent.getColorForOutcome('COMPLETE')).toBe('primary');
|
||||
});
|
||||
|
||||
it('should not enable outcome button when model missing', () => {
|
||||
|
@@ -48,7 +48,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
|
||||
static START_PROCESS_OUTCOME_ID: string = '$startProcess';
|
||||
static CUSTOM_OUTCOME_ID: string = '$custom';
|
||||
static COMPLETE_BUTTON_COLOR: string = 'primary';
|
||||
static COMPLETE_OUTCOME_NAME: string = 'Complete'
|
||||
static COMPLETE_OUTCOME_NAME: string = 'COMPLETE';
|
||||
|
||||
/** Underlying form model instance. */
|
||||
@Input()
|
||||
|
@@ -22,9 +22,9 @@ import { FormModel } from './form.model';
|
||||
|
||||
export class FormOutcomeModel extends FormWidgetModel {
|
||||
|
||||
static SAVE_ACTION: string = 'Save'; // Activiti 'Save' action name
|
||||
static COMPLETE_ACTION: string = 'Complete'; // Activiti 'Complete' action name
|
||||
static START_PROCESS_ACTION: string = 'Start Process'; // Activiti 'Start Process' action name
|
||||
static SAVE_ACTION: string = 'SAVE'; // Activiti 'Save' action name
|
||||
static COMPLETE_ACTION: string = 'COMPLETE'; // Activiti 'Complete' action name
|
||||
static START_PROCESS_ACTION: string = 'START PROCESS'; // Activiti 'Start Process' action name
|
||||
|
||||
isSystem: boolean = false;
|
||||
isSelected: boolean = false;
|
||||
|
@@ -124,17 +124,17 @@ export class FormModel {
|
||||
if (json.fields) {
|
||||
let saveOutcome = new FormOutcomeModel(this, {
|
||||
id: FormModel.SAVE_OUTCOME,
|
||||
name: 'Save',
|
||||
name: 'SAVE',
|
||||
isSystem: true
|
||||
});
|
||||
let completeOutcome = new FormOutcomeModel(this, {
|
||||
id: FormModel.COMPLETE_OUTCOME,
|
||||
name: 'Complete',
|
||||
name: 'COMPLETE',
|
||||
isSystem: true
|
||||
});
|
||||
let startProcessOutcome = new FormOutcomeModel(this, {
|
||||
id: FormModel.START_PROCESS_OUTCOME,
|
||||
name: 'Start Process',
|
||||
name: 'START PROCESS',
|
||||
isSystem: true
|
||||
});
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "Speichern",
|
||||
"START": "Abschließen",
|
||||
"COMPLETE": "Abschließen",
|
||||
"START PROCESS": "Prozess starten",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "SAVE",
|
||||
"START": "COMPLETE",
|
||||
"COMPLETE": "COMPLETE",
|
||||
"START PROCESS": "START PROCESS",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "Guardar",
|
||||
"START": "Completar",
|
||||
"COMPLETE": "Completar",
|
||||
"START PROCESS": "Iniciar proceso",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "Enregistrer",
|
||||
"START": "Terminer",
|
||||
"COMPLETE": "Terminer",
|
||||
"START PROCESS": "Démarrer le processus",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "Salva",
|
||||
"START": "Completa",
|
||||
"COMPLETE": "Completa",
|
||||
"START PROCESS": "Avvia processo",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "保存",
|
||||
"START": "完了",
|
||||
"COMPLETE": "完了",
|
||||
"START PROCESS": "プロセスの開始",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "Lagre",
|
||||
"START": "Fullfør",
|
||||
"COMPLETE": "Fullfør",
|
||||
"START PROCESS": "Start prosess",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "Opslaan",
|
||||
"START": "Voltooid",
|
||||
"COMPLETE": "Voltooid",
|
||||
"START PROCESS": "Proces starten",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "Salvar",
|
||||
"START": "Completar",
|
||||
"COMPLETE": "Completar",
|
||||
"START PROCESS": "Iniciar processo",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "Сохранить",
|
||||
"START": "Завершить",
|
||||
"COMPLETE": "Завершить",
|
||||
"START PROCESS": "Запустить процесс",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"SAVE": "保存",
|
||||
"START": "完成",
|
||||
"COMPLETE": "完成",
|
||||
"START PROCESS": "启动流程",
|
||||
"FORM": {
|
||||
"START_FORM": {
|
||||
|
Reference in New Issue
Block a user