[ACA-2621] Shared link - when dialog is closed focus is not returned to trigger (#1255)

* use custom component action

* adjust component. to render icon and menu action

* pass action data

* update selection after dialog closes

* update mocks
This commit is contained in:
Cilibiu Bogdan
2019-11-22 14:16:23 +02:00
committed by Adina Parpalita
parent 236d80106d
commit f526db9657
5 changed files with 58 additions and 48 deletions

View File

@@ -422,6 +422,9 @@
"id": "app.toolbar.share",
"type": "custom",
"order": 600,
"data": {
"iconButton": true
},
"component": "app.shared-link.toggleSharedLink",
"rules": {
"visible": "app.selection.file.canShare"
@@ -517,6 +520,9 @@
"id": "item3",
"type": "custom",
"order": 400,
"data": {
"iconButton": false
},
"component": "app.shared-link.toggleSharedLink",
"rules": {
"visible": "app.selection.file.canShare"
@@ -538,6 +544,9 @@
"id": "item3",
"type": "custom",
"order": 400,
"data": {
"iconButton": false
},
"component": "app.shared-link.toggleSharedLink",
"rules": {
"visible": "app.selection.file.canShare"
@@ -586,6 +595,9 @@
"id": "app.context.menu.share",
"type": "custom",
"order": 400,
"data": {
"iconButton": false
},
"component": "app.shared-link.toggleSharedLink",
"rules": {
"visible": "app.selection.file.canShare"
@@ -805,6 +817,9 @@
"id": "app.viewer.share",
"type": "custom",
"order": 300,
"data": {
"iconButton": true
},
"component": "app.shared-link.toggleSharedLink",
"rules": {
"visible": "app.selection.file.canShare"