Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Oct 3, 2024
1 parent 92131e3 commit e66672e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@

:root {
--toastify-color-progress-light: #2dd4bf
}
}
7 changes: 3 additions & 4 deletions web/src/views/deployWizzard/deployWizzard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import SealedSecretWidget from "../envConfig/sealedSecretWidget";
import { useParams, useNavigate } from 'react-router-dom'
import { usePostHog } from 'posthog-js/react'
import { toast } from 'react-toastify';
import { InProgress, Success, Error } from '../../popUpWindow';
import { Success } from '../../popUpWindow';

export function DeployWizzard(props) {
const { store, gimletClient } = props
Expand Down Expand Up @@ -87,7 +87,6 @@ export function DeployWizzard(props) {
const topRef = useRef();
const endRef = useRef();
const [followLogs, setFollowLogs] = useState(true);
const progressToastId = useRef(null);

useEffect(() => {
gimletClient.getStackConfig(env)
Expand Down Expand Up @@ -249,10 +248,10 @@ export function DeployWizzard(props) {
setSavingConfigInProgress(true)
gimletClient.saveEnvConfig(owner, repo, env, app, configFile)
.then((data) => {
toast(progressToastId.current, {
render: <Success header="Success" message="Configuration saved." link={data.link} />,
toast(<Success header="Success" message={<div className='pb-4'>Configuration saved</div>} link={data.link} />, {
className: "bg-green-50 shadow-lg p-2",
bodyClassName: "p-2",
autoClose: false
});

setSavingConfigInProgress(false)
Expand Down

0 comments on commit e66672e

Please sign in to comment.