Skip to content

Commit 35acfcb

Browse files
Trashbin: introduce a empty trash icon (#20629)
* add empty trash icon and use it for empty trash-bin and delete from trash-bin * package lock --------- Co-authored-by: Andy Butland <abutland73@gmail.com>
1 parent 2939eb4 commit 35acfcb

File tree

10 files changed

+20
-8
lines changed

10 files changed

+20
-8
lines changed

src/Umbraco.Web.UI.Client/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Umbraco.Web.UI.Client/src/packages/core/icon-registry/icon-dictionary.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2894,6 +2894,11 @@
28942894
"file": "icon-molecular.svg",
28952895
"legacy": true
28962896
},
2897+
{
2898+
"name": "icon-trash-empty",
2899+
"file": "icon-trash-empty.svg",
2900+
"internal": true
2901+
},
28972902
{
28982903
"name": "icon-umbraco",
28992904
"file": "icon-umbraco.svg"

src/Umbraco.Web.UI.Client/src/packages/core/icon-registry/icons.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,6 +2209,9 @@ name: "icon-molecular",
22092209
hidden: true,
22102210
path: () => import("./icons/icon-molecular.js"),
22112211
},{
2212+
name: "icon-trash-empty",
2213+
path: () => import("./icons/icon-trash-empty.js"),
2214+
},{
22122215
name: "icon-umbraco",
22132216
path: () => import("./icons/icon-umbraco.js"),
22142217
},{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default `<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" class="lucide lucide-building-2" viewBox="0 0 24 24"><path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18ZM6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2M10 6h4M10 10h4M10 14h4M10 18h4"/></svg>`;
1+
export default `<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" class="lucide lucide-building-2" viewBox="0 0 24 24"><path d="M10 12h4M10 8h4M14 21v-3a2 2 0 0 0-4 0v3"/><path d="M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"/><path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"/></svg>`;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default `<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" class="lucide lucide-trash-2" viewBox="0 0 24 24"><path d="m14.6 11.4-5.2 5.2m0-5.2 5.2 5.2M19 6v14c0 1.1-.9 2-2 2H7c-1.1 0-2-.9-2-2V6M3 6h18M8 6V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2v2" class="cls-1"/></svg>`;
Lines changed: 1 addition & 0 deletions
Loading

src/Umbraco.Web.UI.Client/src/packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"@hey-api/openapi-ts": "^0.85.0"
1414
},
1515
"devDependencies": {
16-
"lucide-static": "^0.544.0",
16+
"lucide-static": "^0.546.0",
1717
"simple-icons": "^15.16.1",
1818
"svgo": "^4.0.0"
1919
}
20-
}
20+
}

src/Umbraco.Web.UI.Client/src/packages/core/recycle-bin/entity-action/empty-recycle-bin/empty-recycle-bin.action.kind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const manifest: UmbExtensionManifestKind = {
1414
weight: 100,
1515
forEntityTypes: [],
1616
meta: {
17-
icon: 'icon-trash',
17+
icon: 'icon-trash-empty',
1818
label: 'Empty Recycle Bin',
1919
additionalOptions: true,
2020
},

src/Umbraco.Web.UI.Client/src/packages/documents/documents/entity-actions/manifests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const entityActions: Array<UmbExtensionManifest> = [
2020
name: 'Delete Document Entity Action',
2121
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
2222
meta: {
23+
icon: 'icon-trash-empty',
2324
itemRepositoryAlias: UMB_DOCUMENT_ITEM_REPOSITORY_ALIAS,
2425
detailRepositoryAlias: UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS,
2526
referenceRepositoryAlias: UMB_DOCUMENT_REFERENCE_REPOSITORY_ALIAS,

src/Umbraco.Web.UI.Client/src/packages/media/media/entity-actions/manifests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const manifests: Array<UmbExtensionManifest> = [
1818
kind: 'deleteWithRelation',
1919
forEntityTypes: [UMB_MEDIA_ENTITY_TYPE],
2020
meta: {
21+
icon: 'icon-trash-empty',
2122
itemRepositoryAlias: UMB_MEDIA_ITEM_REPOSITORY_ALIAS,
2223
detailRepositoryAlias: UMB_MEDIA_DETAIL_REPOSITORY_ALIAS,
2324
referenceRepositoryAlias: UMB_MEDIA_REFERENCE_REPOSITORY_ALIAS,

0 commit comments

Comments
 (0)