mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4979] Add onChanges detection for Task Header Cloud component (#5208)
* [ADF-4979] Add onChanges detection for Task Header Cloud component * [ADF-4979] Revert licenses.txt changes * [ADF-4979] Documentation added for the taskError Event
This commit is contained in:
committed by
Maurizio Vitale
parent
7d36400dbd
commit
3c1097fb84
@@ -41,7 +41,7 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
|
||||
* @returns List of user preferences
|
||||
*/
|
||||
getPreferences(appName: string): Observable<any> {
|
||||
if (appName || appName === '') {
|
||||
if (appName) {
|
||||
const uri = this.buildPreferenceServiceUri(appName);
|
||||
return from(this.alfrescoApiService.getInstance()
|
||||
.oauth2Auth.callCustomApi(uri, 'GET',
|
||||
@@ -62,7 +62,7 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
|
||||
* @returns Observable of user preference
|
||||
*/
|
||||
getPreferenceByKey(appName: string, key: string): Observable<any> {
|
||||
if (appName || appName === '') {
|
||||
if (appName) {
|
||||
const uri = this.buildPreferenceServiceUri(appName) + '/' + `${key}`;
|
||||
return from(
|
||||
this.alfrescoApiService.getInstance()
|
||||
@@ -85,7 +85,7 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
|
||||
* @returns Observable of created user preferences
|
||||
*/
|
||||
createPreference(appName: string, key: string, newPreference: any): Observable<any> {
|
||||
if (appName || appName === '') {
|
||||
if (appName) {
|
||||
const uri = this.buildPreferenceServiceUri(appName) + '/' + `${key}`;
|
||||
const requestPayload = JSON.stringify(newPreference);
|
||||
return from(this.alfrescoApiService.getInstance()
|
||||
@@ -121,7 +121,7 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
|
||||
* @returns Observable of delete operation status
|
||||
*/
|
||||
deletePreference(appName: string, key: string): Observable<any> {
|
||||
if (appName || appName === '') {
|
||||
if (appName) {
|
||||
const uri = this.buildPreferenceServiceUri(appName) + '/' + `${key}`;
|
||||
return from(this.alfrescoApiService.getInstance()
|
||||
.oauth2Auth.callCustomApi(uri, 'DELETE',
|
||||
|
Reference in New Issue
Block a user