mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-08 20:32:49 +00:00
Add Latest Change Date to Frontend (#3231)
* Updated Logic for Versions * Update logic, add date
This commit is contained in:
committed by
GitHub
parent
84314249b2
commit
4e36061ced
@@ -17,9 +17,8 @@ const getVersions = async () => {
|
||||
const versions: AppVersion[] = JSON.parse(fileContent);
|
||||
|
||||
const modifiedVersions = versions.map(version => {
|
||||
const nameParts = version.name.split('/');
|
||||
let newName = nameParts[nameParts.length - 1];
|
||||
newName = newName.toLowerCase().replace(/[^a-z0-9]/g, '');
|
||||
let newName = version.name;
|
||||
newName = newName.toLowerCase().replace(/[^a-z0-9/]/g, '');
|
||||
return { ...version, name: newName };
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user