1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(UI): PO review tweaks [EE-5776] (#9245)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2023-07-28 07:50:53 +12:00 committed by GitHub
parent 4c425a7af8
commit b128139b69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 25 additions and 8 deletions

View file

@ -10,9 +10,9 @@ export function PublishingExplaination() {
src={ingressDiagram}
alt="ingress explaination"
width={646}
className="flex w-full max-w-2xl basis-1/2 flex-col object-contain lg:w-1/2"
className="flex w-full max-w-2xl basis-1/2 flex-col rounded border border-solid border-gray-5 object-contain lg:w-1/2"
/>
<div className="ml-8 basis-1/2">
<div className="text-muted ml-8 basis-1/2 text-xs">
Expose the application workload via{' '}
<a
href="https://kubernetes.io/docs/concepts/services-networking/service/"

View file

@ -11,7 +11,7 @@ export function confirmDeleteAccess() {
environment. Removing the registry access could lead to a service
interruption for these applications.
</p>
<p>Do you wish to continue?</p>
<p>Are you sure you wish to continue?</p>
</>
),
confirmButton: buildConfirmButton('Remove', 'danger'),

View file

@ -9,6 +9,7 @@ import {
notifySuccess,
} from '@/portainer/services/notifications';
import { isFulfilled, isRejected } from '@/portainer/helpers/promise-utils';
import { pluralize } from '@/portainer/helpers/strings';
import { parseKubernetesAxiosError } from '../axiosError';
@ -104,7 +105,10 @@ export function useMutationDeleteConfigMaps(environmentId: EnvironmentId) {
// show one summary message for all successful deletes
if (successfulConfigMaps.length) {
notifySuccess(
'ConfigMaps successfully removed',
`${pluralize(
successfulConfigMaps.length,
'ConfigMap'
)} successfully removed`,
successfulConfigMaps.join(', ')
);
}

View file

@ -9,6 +9,7 @@ import {
notifySuccess,
} from '@/portainer/services/notifications';
import { isFulfilled, isRejected } from '@/portainer/helpers/promise-utils';
import { pluralize } from '@/portainer/helpers/strings';
import { parseKubernetesAxiosError } from '../axiosError';
@ -100,7 +101,10 @@ export function useMutationDeleteSecrets(environmentId: EnvironmentId) {
// show one summary message for all successful deletes
if (successfulSecrets.length) {
notifySuccess(
'Secrets successfully removed',
`${pluralize(
successfulSecrets.length,
'Secret'
)} successfully removed`,
successfulSecrets.join(', ')
);
}