Skip to content

Commit 66e2eb2

Browse files
committed
Refactor delete namespace modal
1 parent 25f2eeb commit 66e2eb2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/packages/console-app/locales/en/console-app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@
235235
"This action is only enabled when the latest revision of the ReplicationController resource is in a failed state.": "This action is only enabled when the latest revision of the ReplicationController resource is in a failed state.",
236236
"Restore as new PVC": "Restore as new PVC",
237237
"Volume Snapshot is not Ready": "Volume Snapshot is not Ready",
238+
"Delete {{label}}": "Delete {{label}}",
238239
"Current default StorageClass": "Current default StorageClass",
239240
"Set as default": "Set as default",
240241
"Access mode": "Access mode",

frontend/packages/console-app/src/actions/providers/project-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const useDeleteAction = (kindObj: K8sModel, resource: K8sResourceKind) => {
1616
() => ({
1717
delete: () => ({
1818
id: 'delete-project',
19-
label: t('console-app~Delete Project'),
19+
label: t('console-app~Delete {{label}}', { label: t(kindObj.labelKey) }),
2020
cta: launchDeleteModal,
2121
accessReview: asAccessReview(kindObj, resource, 'delete'),
2222
}),

0 commit comments

Comments
 (0)