Skip to content

Commit

Permalink
fix: fix delete resource issue (#155)
Browse files Browse the repository at this point in the history
Because

- We should stop visitors from deleting resources on demo website, but it didn't

This commit

- Fix above issue
  • Loading branch information
EiffelFly committed Jul 13, 2022
1 parent 9134e83 commit 6b79630
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ const ConfigureDestinationForm: FC<ConfigureDestinationFormProps> = ({
<div className="mb-10 flex flex-row">
<OutlineButton
disabled={
process.env.CONSOLE_BASE_URL === "https://demo.instill.tech"
process.env.NEXT_PUBLIC_CONSOLE_BASE_URL ===
"https://demo.instill.tech"
? true
: false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ const ConfigureSourceForm: FC<ConfigureSourceFormProps> = ({ source }) => {
<div className="mb-10 flex flex-row">
<OutlineButton
disabled={
process.env.CONSOLE_BASE_URL === "https://demo.instill.tech"
process.env.NEXT_PUBLIC_CONSOLE_BASE_URL ===
"https://demo.instill.tech"
? true
: false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ const ConfigureModelForm: FC<ConfigureModelFormProps> = ({
<div className="flex flex-row">
<OutlineButton
disabled={
process.env.CONSOLE_BASE_URL === "https://demo.instill.tech"
process.env.NEXT_PUBLIC_CONSOLE_BASE_URL ===
"https://demo.instill.tech"
? true
: false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ const ConfigurePipelineForm: FC<ConfigurePipelineFormProps> = ({
<div className="mb-10 flex flex-row">
<OutlineButton
disabled={
process.env.CONSOLE_BASE_URL === "https://demo.instill.tech"
process.env.NEXT_PUBLIC_CONSOLE_BASE_URL ===
"https://demo.instill.tech"
? true
: false
}
Expand Down

0 comments on commit 6b79630

Please sign in to comment.