Skip to content

Commit 120b47c

Browse files
committed
f
1 parent 5a30c76 commit 120b47c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

cmd/installer/cli/install.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,9 @@ func waitForInstallAPI(ctx context.Context, addr string) error {
450450
}
451451

452452
func runInstall(ctx context.Context, name string, flags InstallCmdFlags, metricsReporter preflights.MetricsReporter) error {
453-
// TODO: revert this
454-
// if err := runInstallVerifyAndPrompt(ctx, name, &flags); err != nil {
455-
// return err
456-
// }
453+
if err := runInstallVerifyAndPrompt(ctx, name, &flags); err != nil {
454+
return err
455+
}
457456

458457
logrus.Debug("initializing install")
459458
if err := initializeInstall(ctx, flags); err != nil {

web/src/components/wizard/ValidationInstallStep.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { ExternalLink } from 'lucide-react';
66
const ValidationInstallStep: React.FC = () => {
77
const { config } = useConfig();
88
const [showAdminLink, setShowAdminLink] = useState(false);
9-
const [adminConsoleUrl, setAdminConsoleUrl] = useState('');
109
const [error, setError] = useState<string | null>(null);
1110
const [isLoading, setIsLoading] = useState(true);
1211

@@ -33,7 +32,6 @@ const ValidationInstallStep: React.FC = () => {
3332
const data = await response.json();
3433

3534
if (data.state === 'Succeeded') {
36-
setAdminConsoleUrl("http://localhost:30000"); // TODO: make this configurable
3735
setShowAdminLink(true);
3836
setIsLoading(false);
3937
if (pollInterval) {
@@ -85,9 +83,9 @@ const ValidationInstallStep: React.FC = () => {
8583
</div>
8684
)}
8785

88-
{showAdminLink && adminConsoleUrl && (
86+
{showAdminLink && (
8987
<a
90-
href={adminConsoleUrl}
88+
href={`http://${window.location.hostname}:${config.adminConsolePort}`}
9189
target="_blank"
9290
rel="noopener noreferrer"
9391
className="inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"

0 commit comments

Comments
 (0)