mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-5281] Changed editable state of metadata content based on change o… (#3400)
* ACS-5281 Changed editable state of metadata content based on change of file lock state * ACS-5281 Updated versions * ACS-5281 Reverted change * ACS-5281 Upgrade version * ACS-5281 Small correction * ACS-5281 Fixed e2e
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
import { RepoApi } from '../repo-api';
|
||||
import { Logger } from '@alfresco/adf-testing';
|
||||
import {
|
||||
SiteBody,
|
||||
SiteMemberRoleBody,
|
||||
SiteMemberBody,
|
||||
SiteBodyCreate,
|
||||
SiteMembershipBodyUpdate,
|
||||
SiteMembershipBodyCreate,
|
||||
SiteEntry,
|
||||
SiteMembershipRequestEntry,
|
||||
SitesApi as AdfSiteApi,
|
||||
@@ -69,7 +69,7 @@ export class SitesApi extends RepoApi {
|
||||
visibility: visibility || SITE_VISIBILITY.PUBLIC,
|
||||
description: description,
|
||||
id: siteId || title
|
||||
} as SiteBody;
|
||||
} as SiteBodyCreate;
|
||||
|
||||
try {
|
||||
await this.apiAuth();
|
||||
@@ -136,7 +136,7 @@ export class SitesApi extends RepoApi {
|
||||
async updateSiteMember(siteId: string, userId: string, role: string) {
|
||||
const siteRole = {
|
||||
role: role
|
||||
} as SiteMemberRoleBody;
|
||||
} as SiteMembershipBodyUpdate;
|
||||
|
||||
try {
|
||||
await this.apiAuth();
|
||||
@@ -151,7 +151,7 @@ export class SitesApi extends RepoApi {
|
||||
const memberBody = {
|
||||
id: userId,
|
||||
role: role
|
||||
} as SiteMemberBody;
|
||||
} as SiteMembershipBodyCreate;
|
||||
|
||||
try {
|
||||
await this.apiAuth();
|
||||
|
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
import { RepoApi } from '../repo-api';
|
||||
import { UploadApi as AdfUploadApi } from '@alfresco/js-api';
|
||||
import { NodeBodyCreate, UploadApi as AdfUploadApi } from '@alfresco/js-api';
|
||||
import { browser } from 'protractor';
|
||||
import * as fs from 'fs';
|
||||
|
||||
@@ -66,7 +66,7 @@ export class UploadApi extends RepoApi {
|
||||
|
||||
try {
|
||||
await this.apiAuth();
|
||||
return await this.upload.uploadFile(file, '', parentId, nodeProps, opts);
|
||||
return await this.upload.uploadFile(file, '', parentId, nodeProps as NodeBodyCreate, opts);
|
||||
} catch (error) {
|
||||
this.handleError(`${this.constructor.name} ${this.uploadFileWithRename.name}`, error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user