mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fixed regression problem
This commit is contained in:
@@ -244,7 +244,7 @@ export class UploadButtonComponent {
|
|||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
private getErrorMessage(response: any): string {
|
private getErrorMessage(response: any): string {
|
||||||
if (response.body.error.statusCode === ERROR_FOLDER_ALREADY_EXIST ) {
|
if (response.body && response.body.error.statusCode === ERROR_FOLDER_ALREADY_EXIST ) {
|
||||||
let errorMessage: any;
|
let errorMessage: any;
|
||||||
errorMessage = this.translate.get('FILE_UPLOAD.MESSAGES.FOLDER_ALREADY_EXIST');
|
errorMessage = this.translate.get('FILE_UPLOAD.MESSAGES.FOLDER_ALREADY_EXIST');
|
||||||
return errorMessage.value;
|
return errorMessage.value;
|
||||||
|
@@ -115,7 +115,7 @@ export class UploadService {
|
|||||||
* @returns {AlfrescoApi.ApiClient}
|
* @returns {AlfrescoApi.ApiClient}
|
||||||
*/
|
*/
|
||||||
private getAlfrescoClient() {
|
private getAlfrescoClient() {
|
||||||
return AlfrescoApi.getClientWithTicket(this.getBaseUrl(), this.getAlfrescoTicket());
|
return AlfrescoApi.getClientWithTicket(this.settings.getApiBaseUrl(), this.getAlfrescoTicket());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user