mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-07-15 22:32:29 -05:00
The `service.allowiconchanges` config option was ignored. On the web ui the value injected into index.html by the api was immediately overwritten by a hardcoded `window.ALLOW_ICON_CHANGES = true` in a later inline script, so the configured value never took effect. The desktop app never received the injected value at all, since it serves the bundled frontend from its own local server and only talks to the api for data. Expose the option via the /info endpoint and read it from the config store, which is the only channel that reaches both the web ui and the desktop app. The brittle window injection and its hardcoded default are removed in favor of this single source of truth. https://claude.ai/code/session_01HAXTJNsDcfsB4hwDNKTECb
29 lines
977 B
HTML
29 lines
977 B
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||
<title>Vikunja</title>
|
||
<meta name="description" content="Vikunja (/vɪˈkuːnjə/) - The to-do app to organize your life.">
|
||
<meta name="theme-color" content="#1973ff"/>
|
||
|
||
<link rel="icon" href="/favicon.ico">
|
||
<link rel="apple-touch-icon" href="/images/icons/apple-touch-icon-180x180.png"/>
|
||
<!--__vite-plugin-inject-preload__-->
|
||
</head>
|
||
<body>
|
||
<noscript>
|
||
<strong>We're sorry but Vikunja doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||
</noscript>
|
||
<div id="app"></div>
|
||
<script type="module" src="/src/main.ts"></script>
|
||
<script>
|
||
//
|
||
// This variable points the frontend to the api.
|
||
// It has to be the full url, including the last /api/v1 part and port.
|
||
// You can change this if your api is not reachable on the same port as the frontend.
|
||
window.API_URL = '/api/v1'
|
||
</script>
|
||
</body>
|
||
</html>
|