mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
#440 form refresh (reload) action
This commit is contained in:
parent
591f053d9b
commit
978b9baf6a
@ -25,6 +25,12 @@
|
|||||||
{{outcome.name}}
|
{{outcome.name}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mdl-card__menu">
|
||||||
|
<button (click)="onRefreshClicked()"
|
||||||
|
class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect">
|
||||||
|
<i class="material-icons">refresh</i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -95,6 +95,12 @@ export class ActivitiForm implements OnInit, AfterViewChecked, OnChanges {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onRefreshClicked() {
|
||||||
|
if (this.taskId) {
|
||||||
|
this.loadForm(this.taskId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private loadForm(taskId: string) {
|
private loadForm(taskId: string) {
|
||||||
this.formService
|
this.formService
|
||||||
.getTaskForm(taskId)
|
.getTaskForm(taskId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user