feat(submissions): auto-replace player in scopes, cancel sync + info about the sync
This commit is contained in:
@@ -475,7 +475,16 @@ const loadUserSubmissions = async () => {
|
||||
}
|
||||
};
|
||||
|
||||
const { isConnected: wsConnected } = useSubmissionsWebSocket(userSubmissions);
|
||||
// Match over (or user moved off it): back to the picker, which auto-enters
|
||||
// the next match when there's only one, so players follow along without a refresh.
|
||||
const { isConnected: wsConnected } = useSubmissionsWebSocket({
|
||||
userSubmissions,
|
||||
onScopeUpdate: (scope) => {
|
||||
if (scope.id !== props.scopeId || (scope.is_active && scope.assigned)) return;
|
||||
|
||||
router.replace({ name: "submissions-select", params: { eventPath: props.eventPath, gamePath: props.gamePath } });
|
||||
},
|
||||
});
|
||||
const isUploadAreaHovered = ref(false);
|
||||
|
||||
const handlePasteOnUploadArea = (event: ClipboardEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user