Rename gateway proxy labels and update window title
This commit is contained in:
@@ -25,6 +25,10 @@ function App() {
|
||||
return () => clearInterval(timer);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (state?.mode) document.title = state.mode === 'gateway' ? 'Gateway' : 'Proxy';
|
||||
}, [state?.mode]);
|
||||
|
||||
async function run(action) {
|
||||
setBusy(true);
|
||||
setError('');
|
||||
|
||||
@@ -225,12 +225,12 @@ export function ClientOverviewPage({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section className={`client-proxies${isGateway ? ' has-tabs' : ''}`} aria-label={isGateway ? 'Gateway и Local Proxy' : 'Локальный прокси'}>
|
||||
<section className={`client-proxies${isGateway ? ' has-tabs' : ''}`} aria-label={isGateway ? 'Gateway и Gateway Proxy' : 'Локальный прокси'}>
|
||||
{isGateway && (
|
||||
<div className="client-access-tabs" role="tablist" aria-label="Способ подключения">
|
||||
{[
|
||||
['gateway', 'Gateway'],
|
||||
['proxy', 'Local Proxy'],
|
||||
['proxy', 'Gateway Proxy'],
|
||||
].map(([tab, label]) => (
|
||||
<button
|
||||
className={`client-access-tab${accessTab === tab ? ' is-active' : ''}`}
|
||||
|
||||
Reference in New Issue
Block a user