mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4522] Metadata value is not rolled back upon error (#5550)
* * initial commit * * removed breaking change * * fixed ts * * fixed minor changes * * fixed changes * * minor changes * * fixed unit test * * docs added * * fixed date clear problem * * fixed unit test
This commit is contained in:
@@ -43,6 +43,7 @@ export class CardViewUpdateService {
|
||||
|
||||
itemUpdated$ = new Subject<UpdateNotification>();
|
||||
itemClicked$ = new Subject<ClickNotification>();
|
||||
updateItem$ = new Subject<CardViewBaseItemModel>();
|
||||
|
||||
update(property: CardViewBaseItemModel, newValue: any) {
|
||||
this.itemUpdated$.next({
|
||||
@@ -56,4 +57,13 @@ export class CardViewUpdateService {
|
||||
target: property
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the cardview items property
|
||||
* @param CardViewBaseItemModel
|
||||
*/
|
||||
updateElement(notification: CardViewBaseItemModel) {
|
||||
this.updateItem$.next(notification);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user