Fixed button to open new tab(make it a Link)
This commit is contained in:
parent
74d3e6d37b
commit
b6f1f07d19
2 changed files with 16 additions and 16 deletions
|
|
@ -21,7 +21,7 @@ export default function DeleteConfirmationModal({
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<Dialog>
|
<Dialog>
|
||||||
<DialogTrigger>{children}</DialogTrigger>
|
<DialogTrigger tabIndex={-1}>{children}</DialogTrigger>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>
|
<DialogTitle>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { useContext, useEffect, useState } from "react";
|
import { useContext, useEffect, useState } from "react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { Link, useNavigate } from "react-router-dom";
|
||||||
import PaginatorComponent from "../../../../components/PaginatorComponent";
|
import PaginatorComponent from "../../../../components/PaginatorComponent";
|
||||||
import CollectionCardComponent from "../../../../components/cardComponent";
|
import CollectionCardComponent from "../../../../components/cardComponent";
|
||||||
import CardsWrapComponent from "../../../../components/cardsWrapComponent";
|
import CardsWrapComponent from "../../../../components/cardsWrapComponent";
|
||||||
|
|
@ -142,20 +142,20 @@ export default function ComponentsComponent({
|
||||||
disabled={isLoading}
|
disabled={isLoading}
|
||||||
button={
|
button={
|
||||||
!is_component ? (
|
!is_component ? (
|
||||||
<Button
|
<Link to={"/flow/" + item.id}>
|
||||||
variant="outline"
|
<Button
|
||||||
size="sm"
|
tabIndex={-1}
|
||||||
className="whitespace-nowrap "
|
variant="outline"
|
||||||
onClick={() => {
|
size="sm"
|
||||||
navigate("/flow/" + item.id);
|
className="whitespace-nowrap "
|
||||||
}}
|
>
|
||||||
>
|
<IconComponent
|
||||||
<IconComponent
|
name="ExternalLink"
|
||||||
name="ExternalLink"
|
className="main-page-nav-button select-none"
|
||||||
className="main-page-nav-button"
|
/>
|
||||||
/>
|
Edit Flow
|
||||||
Edit Flow
|
</Button>
|
||||||
</Button>
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue