#440 form refresh (reload) action

This commit is contained in:
Denys Vuika 2016-07-25 15:26:50 +01:00
parent 591f053d9b
commit 978b9baf6a
2 changed files with 12 additions and 0 deletions

View File

@ -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>

View File

@ -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)