status/gui/modules/webservicedashboard.svelte

17 lines
333 B
Svelte
Raw Normal View History

2022-07-13 09:16:07 +00:00
<script>
import { createEventDispatcher, onMount } from 'svelte';
const dispatch = createEventDispatcher();
onMount(() => {
let url = window.location.href;
2022-08-29 10:22:17 +00:00
if (!url.endsWith('/')) {
url += '/';
}
2022-07-13 09:16:07 +00:00
url += 'status/dashboard';
window.open(url, '_blank').focus();
dispatch('close');
});
</script>