mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 18:59:41 +02:00
fix(secrets): allow edit sa token, refactor (#7732)
This commit is contained in:
parent
cb79dc18f8
commit
a1a88eb5e4
12 changed files with 78 additions and 78 deletions
|
@ -8,7 +8,7 @@ export default function (formValues) {
|
|||
if (formValues.Kind === KubernetesConfigurationKinds.CONFIGMAP) {
|
||||
return [{ action, kind: KubernetesResourceTypes.CONFIGMAP, name: formValues.Name }];
|
||||
} else if (formValues.Kind === KubernetesConfigurationKinds.SECRET) {
|
||||
let type = typeof formValues.Type === 'string' ? formValues.Type : formValues.Type.name;
|
||||
let type = formValues.Type;
|
||||
if (formValues.customType) {
|
||||
type = formValues.customType;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue