fix: lowercase issues fider

This commit is contained in:
Andras Bacsai 2022-08-10 11:55:27 +00:00
parent 2da24cc4bd
commit a9ef490988
2 changed files with 11 additions and 8 deletions

View File

@ -1630,15 +1630,18 @@ export function persistentVolumes(id, persistentStorage, config) {
return `${id}${storage.path.replace(/\//gi, '-')}:${storage.path}`;
}) || [];
const volumes = [config.volume, ...persistentVolume]
const composeVolumes = volumes.map((volume) => {
let volumes = [ ...persistentVolume]
if (config.volume) volumes = [config.volume, ...volumes]
const composeVolumes = volumes.length > 0 && volumes.map((volume) => {
return {
[`${volume.split(':')[0]}`]: {
name: volume.split(':')[0]
}
};
});
const volumeMounts = Object.assign(
}) || []
const volumeMounts = config.volume && Object.assign(
{},
{
[config.volume.split(':')[0]]: {
@ -1646,6 +1649,6 @@ export function persistentVolumes(id, persistentStorage, config) {
}
},
...composeVolumes
);
) || {}
return { volumes, volumeMounts }
}

View File

@ -344,7 +344,7 @@ export const fider = [{
{
name: 'emailNoreply',
isEditable: true,
isLowerCase: true,
isLowerCase: false,
isNumber: false,
isBoolean: false,
isEncrypted: false
@ -352,7 +352,7 @@ export const fider = [{
{
name: 'emailSmtpHost',
isEditable: true,
isLowerCase: true,
isLowerCase: false,
isNumber: false,
isBoolean: false,
isEncrypted: false
@ -376,7 +376,7 @@ export const fider = [{
{
name: 'emailSmtpUser',
isEditable: true,
isLowerCase: true,
isLowerCase: false,
isNumber: false,
isBoolean: false,
isEncrypted: false