Multi-domain perms

This commit is contained in:
Ian Gulliver
2024-12-02 21:25:40 -08:00
parent b70546e0c9
commit ad524da3e3
2 changed files with 92 additions and 12 deletions

View File

@@ -222,8 +222,6 @@ document.addEventListener('DOMContentLoaded', async () => {
customElements.whenDefined('sl-tree'),
]);
document.getElementById('short').setAttribute('label', `${window.location.host}/`);
let shortPaste = false;
document.getElementById('short').addEventListener('sl-input', async () => {
@@ -295,7 +293,7 @@ document.addEventListener('DOMContentLoaded', async () => {
</head>
<body>
<div id="container" style="width: min(500px, calc(100vw - 10px))">
<sl-input id="short" value="{{ .path }}">
<sl-input id="short" value="{{ .path }}" label="{{ .host }}/">
<sl-icon id="short-icon" name="type" slot="suffix"></sl-icon>
</sl-input>