added more messages

This commit is contained in:
Nikolaos Laskaris 2017-11-07 13:35:31 +02:00
parent be6ce2ee71
commit a952cc529d
2 changed files with 5 additions and 3 deletions

View File

@ -112,10 +112,12 @@ export class DmpComponent implements OnInit{
getDmps(){
getDmps(muted? : boolean){
this.serverService.getDmpOfUser().subscribe(
response => {
this.tableData = response;
if(muted && muted!=true)
simple_notifier("success",null,"Refreshed DMPs");
},
(err: HttpErrorResponse) => {
simple_notifier("danger",null,"Could not refresh DMPs");

View File

@ -10,7 +10,7 @@
<input class="form-control" [(ngModel)]="filterQuery" placeholder='Search in Labels' />
</th>
<th colspan="1">
<button class="btn btn-default " (click)="getDmps()">
<button class="btn btn-default " (click)="getDmps('false')">
<span class="glyphicon glyphicon-refresh"></span>
</button>
</th>