Rename the methods
This commit is contained in:
@@ -67,7 +67,7 @@ export class ListOfDzsComponent implements OnInit {
|
||||
|
||||
public setToFavorite(dropzone: DropZoneResp) {
|
||||
dropzone.isFavorite = true;
|
||||
this.serviceApi.SetFavoriteDropZone(dropzone);
|
||||
this.serviceApi.setFavoriteDropZone(dropzone);
|
||||
|
||||
const data = this.dataSourceTable.data;
|
||||
data.sort((a, b) => (b.isFavorite ? 1 : 0) - (a.isFavorite ? 1 : 0));
|
||||
@@ -77,7 +77,7 @@ export class ListOfDzsComponent implements OnInit {
|
||||
|
||||
public removeToFavorite(dropzone: DropZoneResp) {
|
||||
dropzone.isFavorite = false;
|
||||
this.serviceApi.RemoveFavoriteDropZone(dropzone);
|
||||
this.serviceApi.removeFavoriteDropZone(dropzone);
|
||||
|
||||
const data = this.dataSourceTable.data;
|
||||
data.sort((a, b) => (b.isFavorite ? 1 : 0) - (a.isFavorite ? 1 : 0));
|
||||
@@ -99,7 +99,7 @@ export class ListOfDzsComponent implements OnInit {
|
||||
|
||||
private updateTitle() {
|
||||
this.translateService.get("ListDz_Title").subscribe(
|
||||
data => { this.serviceComm.UpdatedComponentTitle(data); }
|
||||
data => { this.serviceComm.updatedComponentTitle(data); }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user