mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-13 11:03:46 +00:00
feat(*): Enable joining a room from the homepage
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<script>
|
<script>
|
||||||
import { generateRoomId } from './estimation/estimation.js';
|
import { generateId } from './estimation/estimation.js';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
function startARoom() {
|
function startARoom() {
|
||||||
const roomId = generateRoomId();
|
const roomId = generateId();
|
||||||
goto(`/estimation/${roomId}`);
|
goto(`/estimation/${roomId}`);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user