Update src/components/dashboard/actions-card.jsx
All checks were successful
Deploy to Server / deploy (push) Successful in 1m28s
All checks were successful
Deploy to Server / deploy (push) Successful in 1m28s
This commit is contained in:
parent
c55d66d302
commit
dac9fab4a8
|
|
@ -130,47 +130,6 @@ export function ActionsCard({ details }) {
|
|||
</Button>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
/*<Dialog open={!!newSecret} onOpenChange={(open) => !open && setNewSecret(null)}>
|
||||
<AlertDialog>
|
||||
<AlertDialogTrigger asChild>
|
||||
<Button variant="destructive" disabled={isResetting}>
|
||||
<KeyRound className="h-4 w-4 mr-2" />
|
||||
{isResetting ? 'Resetting...' : 'Reset SIP Secret'}
|
||||
</Button>
|
||||
</AlertDialogTrigger>
|
||||
<AlertDialogContent className="bg-gray-950 border-gray-800 text-white">
|
||||
<AlertDialogHeader>
|
||||
<AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
|
||||
<AlertDialogDescription className="text-gray-400">
|
||||
Resetting your SIP secret will require you to update it on all devices registered to this extension. Are you sure you want to continue?
|
||||
</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
<AlertDialogFooter>
|
||||
<AlertDialogCancel className="border-gray-700 hover:bg-gray-800">Cancel</AlertDialogCancel>
|
||||
<AlertDialogAction
|
||||
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
|
||||
onClick={handleResetSecret}
|
||||
>
|
||||
Continue
|
||||
</AlertDialogAction>
|
||||
</AlertDialogFooter>
|
||||
</AlertDialogContent>
|
||||
</AlertDialog>
|
||||
<DialogContent>
|
||||
<DialogHeader>
|
||||
<DialogTitle>Secret Reset Successfully</DialogTitle>
|
||||
<DialogDescription>
|
||||
Your new SIP secret is shown below. Please save it in a secure place.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div className="flex items-center space-x-2 bg-gray-900 p-3 rounded-md">
|
||||
<code className="text-lg font-mono flex-grow">{newSecret}</code>
|
||||
<Button variant="ghost" size="icon" onClick={copyToClipboard}>
|
||||
<Copy className="h-4 w-4" />
|
||||
</Button>
|
||||
</div>
|
||||
</DialogContent>
|
||||
</Dialog>*/
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue