mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-2174][ACA-2173] Shared / Favorites - edit offline (#1341)
* edit offline * try to fix test for viewer - password protected file * bug: Edit in Microsoft Office action is displayed in Shared Files for a locked file move Shared Files workaround down in the file to fix this * remove some workarounds, update some comments * remove other workarounds, make some tests independent, enable lock icon on Search results * forgotten change * remove another workaround Co-authored-by: Adina Parpalita <adina.parpalita@ness.com>
This commit is contained in:
@@ -264,6 +264,19 @@ export class DataTable extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
async unselectItem(name: string, location: string = ''): Promise<void> {
|
||||
const isSelected = await this.hasCheckMarkIcon(name, location);
|
||||
if (isSelected) {
|
||||
try {
|
||||
const item = this.getRowFirstCell(name, location);
|
||||
await item.click();
|
||||
|
||||
} catch (e) {
|
||||
console.log('--- unselect item catch : ', e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async clickItem(name: string, location: string = ''): Promise<void> {
|
||||
const item = this.getRowFirstCell(name, location);
|
||||
await item.click();
|
||||
|
Reference in New Issue
Block a user