mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Merge pull request #1368 from Alfresco/dev-denys-1333
hide save button from start form
This commit is contained in:
commit
6e8bb1d25f
@ -29,6 +29,7 @@ import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
|||||||
import { ActivitiForm } from './activiti-form.component';
|
import { ActivitiForm } from './activiti-form.component';
|
||||||
import { FormService } from './../services/form.service';
|
import { FormService } from './../services/form.service';
|
||||||
import { WidgetVisibilityService } from './../services/widget-visibility.service';
|
import { WidgetVisibilityService } from './../services/widget-visibility.service';
|
||||||
|
import { FormOutcomeModel } from './widgets/core/index';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the start form for a named process definition, which can be used to retrieve values to start a new process.
|
* Displays the start form for a named process definition, which can be used to retrieve values to start a new process.
|
||||||
@ -131,7 +132,17 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
isOutcomeButtonVisible(outcome: FormOutcomeModel): boolean {
|
||||||
|
if (outcome && outcome.name === FormOutcomeModel.SAVE_ACTION) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.isOutcomeButtonVisible(outcome);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
saveTaskForm() {
|
saveTaskForm() {
|
||||||
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
completeTaskForm(outcome?: string) {
|
completeTaskForm(outcome?: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user