Files
threshold-ui/ui/admin/app/controllers/onboarding/success.js
T
2024-08-15 10:46:00 -07:00

30 lines
645 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
export default class OnboardingSuccessController extends Controller {
// =services
@service router;
// =actions
/**
* Redirect user to target created during onboarding.
* @param {object} model
*/
@action
showTargetList(model) {
const {
project: { id: scopeID },
target: { id: targetID },
} = model;
this.router.transitionTo('scopes.scope.targets.target', scopeID, targetID);
}
}