fix: lowercase issues fider
This commit is contained in:
parent
2da24cc4bd
commit
a9ef490988
@ -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 }
|
||||
}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user