fix server display name and conf file name
This commit is contained in:
@@ -49,7 +49,7 @@ PersistentKeepalive = 25
|
|||||||
const element = document.createElement('a');
|
const element = document.createElement('a');
|
||||||
const file = new Blob([qrContent], { type: 'text/plain' });
|
const file = new Blob([qrContent], { type: 'text/plain' });
|
||||||
element.href = URL.createObjectURL(file);
|
element.href = URL.createObjectURL(file);
|
||||||
element.download = 'vpnConfig.conf';
|
element.download = 'IDNTTY-' + servers?.[selectedServer]?.country + '.conf';
|
||||||
document.body.appendChild(element); // Required for this to work in FireFox
|
document.body.appendChild(element); // Required for this to work in FireFox
|
||||||
element.click();
|
element.click();
|
||||||
};
|
};
|
||||||
@@ -109,7 +109,7 @@ PersistentKeepalive = 25
|
|||||||
{/* Card */}
|
{/* Card */}
|
||||||
<div className="col-span-6 order-1 sm:order-none flex items-center space-x-4 ">
|
<div className="col-span-6 order-1 sm:order-none flex items-center space-x-4 ">
|
||||||
<ReactCountryFlag
|
<ReactCountryFlag
|
||||||
countryCode={e.country}
|
countryCode={e.shortCountry}
|
||||||
svg
|
svg
|
||||||
style={{ width: '36px', height: 'auto' }}
|
style={{ width: '36px', height: 'auto' }}
|
||||||
/>
|
/>
|
||||||
@@ -157,7 +157,8 @@ PersistentKeepalive = 25
|
|||||||
<div className="max-w-sm mx-auto lg:max-w-none flex flex-col justify-between h-full">
|
<div className="max-w-sm mx-auto lg:max-w-none flex flex-col justify-between h-full">
|
||||||
<div>
|
<div>
|
||||||
<div className="text-slate-800 font-semibold text-center mb-6">
|
<div className="text-slate-800 font-semibold text-center mb-6">
|
||||||
Physical Metal Card
|
{servers?.[selectedServer]?.country} -{' '}
|
||||||
|
{servers?.[selectedServer]?.region}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Credit Card */}
|
{/* Credit Card */}
|
||||||
|
|||||||
@@ -620,7 +620,7 @@ class Store {
|
|||||||
100
|
100
|
||||||
),
|
),
|
||||||
state: server.state === '1',
|
state: server.state === '1',
|
||||||
country: countryCodes[server.country] || 'US',
|
shortCountry: countryCodes[server.country] || 'US',
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user