mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-6489] Use resizable option to disable resize on thumbnail column (#3590)
This commit is contained in:
parent
3f04f05da5
commit
baeffc9416
@ -582,6 +582,10 @@
|
||||
"description": "Toggles sortable state of the column",
|
||||
"type": "boolean"
|
||||
},
|
||||
"resizable": {
|
||||
"description": "Toggles resizable state of the column",
|
||||
"type": "boolean"
|
||||
},
|
||||
"template": {
|
||||
"description": "Column template id",
|
||||
"type": "string"
|
||||
|
@ -2132,7 +2132,8 @@
|
||||
"type": "image",
|
||||
"sortable": false,
|
||||
"desktopOnly": false,
|
||||
"order": 10
|
||||
"order": 10,
|
||||
"resizable": false
|
||||
},
|
||||
{
|
||||
"id": "app.files.name",
|
||||
@ -2205,7 +2206,8 @@
|
||||
"type": "image",
|
||||
"sortable": false,
|
||||
"desktopOnly": false,
|
||||
"order": 10
|
||||
"order": 10,
|
||||
"resizable": false
|
||||
},
|
||||
{
|
||||
"id": "app.libraries.name",
|
||||
@ -2263,7 +2265,8 @@
|
||||
"type": "image",
|
||||
"sortable": false,
|
||||
"desktopOnly": false,
|
||||
"order": 10
|
||||
"order": 10,
|
||||
"resizable": false
|
||||
},
|
||||
{
|
||||
"id": "app.favorite.libraries.name",
|
||||
@ -2321,7 +2324,8 @@
|
||||
"type": "image",
|
||||
"sortable": false,
|
||||
"desktopOnly": false,
|
||||
"order": 10
|
||||
"order": 10,
|
||||
"resizable": false
|
||||
},
|
||||
{
|
||||
"id": "app.shared.name",
|
||||
@ -2420,7 +2424,8 @@
|
||||
"type": "image",
|
||||
"sortable": false,
|
||||
"desktopOnly": false,
|
||||
"order": 10
|
||||
"order": 10,
|
||||
"resizable": false
|
||||
},
|
||||
{
|
||||
"id": "app.recent.name",
|
||||
@ -2493,7 +2498,8 @@
|
||||
"type": "image",
|
||||
"sortable": false,
|
||||
"desktopOnly": false,
|
||||
"order": 10
|
||||
"order": 10,
|
||||
"resizable": false
|
||||
},
|
||||
{
|
||||
"id": "app.favorites.name",
|
||||
@ -2577,7 +2583,8 @@
|
||||
"type": "image",
|
||||
"sortable": false,
|
||||
"desktopOnly": false,
|
||||
"order": 10
|
||||
"order": 10,
|
||||
"resizable": false
|
||||
},
|
||||
{
|
||||
"id": "app.trashcan.name",
|
||||
@ -2635,7 +2642,8 @@
|
||||
"type": "image",
|
||||
"sortable": false,
|
||||
"desktopOnly": false,
|
||||
"order": 10
|
||||
"order": 10,
|
||||
"resizable": false
|
||||
},
|
||||
{
|
||||
"id": "app.libraries.name",
|
||||
|
@ -37,6 +37,7 @@
|
||||
<data-column
|
||||
[id]="column.id"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[key]="column.key"
|
||||
[title]="column.title"
|
||||
[type]="column.type"
|
||||
@ -56,6 +57,7 @@
|
||||
[id]="column.id"
|
||||
[key]="column.key"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[title]="column.title"
|
||||
[type]="column.type"
|
||||
[format]="column.format"
|
||||
|
@ -34,6 +34,7 @@
|
||||
[key]="column.key"
|
||||
[title]="column.title"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[type]="column.type"
|
||||
[format]="column.format"
|
||||
[class]="column.class"
|
||||
@ -53,6 +54,7 @@
|
||||
[title]="column.title"
|
||||
[type]="column.type"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[format]="column.format"
|
||||
[class]="column.class"
|
||||
[sortable]="column.sortable"
|
||||
|
@ -49,6 +49,7 @@
|
||||
[sortingKey]="column.sortingKey || column.key"
|
||||
[isHidden]="column.isHidden"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
>
|
||||
<ng-template let-context>
|
||||
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
||||
@ -68,6 +69,7 @@
|
||||
[sortingKey]="column.sortingKey || column.key"
|
||||
[isHidden]="column.isHidden"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
>
|
||||
</data-column>
|
||||
</ng-container>
|
||||
|
@ -40,6 +40,7 @@
|
||||
[type]="column.type"
|
||||
[format]="column.format"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[class]="column.class"
|
||||
[sortable]="column.sortable"
|
||||
[isHidden]="column.isHidden"
|
||||
@ -59,6 +60,7 @@
|
||||
[format]="column.format"
|
||||
[class]="column.class"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[sortable]="column.sortable"
|
||||
[isHidden]="column.isHidden"
|
||||
>
|
||||
|
@ -38,6 +38,7 @@
|
||||
[class]="column.class"
|
||||
[sortable]="column.sortable"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[isHidden]="column.isHidden"
|
||||
>
|
||||
<ng-template let-context>
|
||||
@ -57,6 +58,7 @@
|
||||
[sortable]="column.sortable"
|
||||
[isHidden]="column.isHidden"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
>
|
||||
</data-column>
|
||||
</ng-container>
|
||||
|
@ -47,6 +47,7 @@
|
||||
[class]="column.class"
|
||||
[sortable]="column.sortable"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
>
|
||||
<ng-template let-context>
|
||||
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
||||
@ -64,6 +65,7 @@
|
||||
[class]="column.class"
|
||||
[sortable]="column.sortable"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
>
|
||||
</data-column>
|
||||
</ng-container>
|
||||
|
@ -38,6 +38,7 @@
|
||||
[sortable]="column.sortable"
|
||||
[isHidden]="column.isHidden"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
>
|
||||
<ng-template let-context>
|
||||
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
|
||||
@ -49,6 +50,7 @@
|
||||
<data-column
|
||||
[id]="column.id"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[key]="column.key"
|
||||
[title]="column.title"
|
||||
[type]="column.type"
|
||||
|
@ -38,6 +38,7 @@
|
||||
[id]="column.id"
|
||||
[key]="column.key"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[title]="column.title"
|
||||
[type]="column.type"
|
||||
[format]="column.format"
|
||||
@ -61,6 +62,7 @@
|
||||
[class]="column.class"
|
||||
[sortable]="column.sortable"
|
||||
[draggable]="column.draggable"
|
||||
[resizable]="column.resizable"
|
||||
[isHidden]="column.isHidden"
|
||||
>
|
||||
</data-column>
|
||||
|
@ -220,6 +220,10 @@ export class AppExtensionService implements RuleContext {
|
||||
.getElements<DocumentListPresetRef>(config, `features.documentList.${key}`)
|
||||
.filter((group) => this.filterVisible(group))
|
||||
.filter((entry) => !entry.disabled)
|
||||
.map((entry) => {
|
||||
entry.resizable = entry.resizable ?? true;
|
||||
return entry;
|
||||
})
|
||||
.sort(sortByOrder);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user