Confirm destructive collaboration actions
This commit is contained in:
@@ -572,6 +572,7 @@
|
|||||||
|
|
||||||
async function endCollaboration() {
|
async function endCollaboration() {
|
||||||
if (!collaborationSession) return;
|
if (!collaborationSession) return;
|
||||||
|
if (!window.confirm('End the current Guest Star collaboration? Twitch will remove the active session.')) return;
|
||||||
collaborationBusy = true;
|
collaborationBusy = true;
|
||||||
collaborationError = '';
|
collaborationError = '';
|
||||||
try {
|
try {
|
||||||
@@ -605,6 +606,7 @@
|
|||||||
|
|
||||||
async function cancelCollaborationInvite(guestId: string) {
|
async function cancelCollaborationInvite(guestId: string) {
|
||||||
if (!collaborationSession) return;
|
if (!collaborationSession) return;
|
||||||
|
if (!window.confirm(`Cancel the collaboration invite for ${guestId}?`)) return;
|
||||||
collaborationBusy = true;
|
collaborationBusy = true;
|
||||||
collaborationError = '';
|
collaborationError = '';
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user