added more messages
This commit is contained in:
parent
be6ce2ee71
commit
a952cc529d
|
@ -112,10 +112,12 @@ export class DmpComponent implements OnInit{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getDmps(){
|
getDmps(muted? : boolean){
|
||||||
this.serverService.getDmpOfUser().subscribe(
|
this.serverService.getDmpOfUser().subscribe(
|
||||||
response => {
|
response => {
|
||||||
this.tableData = response;
|
this.tableData = response;
|
||||||
|
if(muted && muted!=true)
|
||||||
|
simple_notifier("success",null,"Refreshed DMPs");
|
||||||
},
|
},
|
||||||
(err: HttpErrorResponse) => {
|
(err: HttpErrorResponse) => {
|
||||||
simple_notifier("danger",null,"Could not refresh DMPs");
|
simple_notifier("danger",null,"Could not refresh DMPs");
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<input class="form-control" [(ngModel)]="filterQuery" placeholder='Search in Labels' />
|
<input class="form-control" [(ngModel)]="filterQuery" placeholder='Search in Labels' />
|
||||||
</th>
|
</th>
|
||||||
<th colspan="1">
|
<th colspan="1">
|
||||||
<button class="btn btn-default " (click)="getDmps()">
|
<button class="btn btn-default " (click)="getDmps('false')">
|
||||||
<span class="glyphicon glyphicon-refresh"></span>
|
<span class="glyphicon glyphicon-refresh"></span>
|
||||||
</button>
|
</button>
|
||||||
</th>
|
</th>
|
||||||
|
|
Loading…
Reference in New Issue