Merge pull request #6156 from rancher/fix-cruresource

Pass data when emitting finish event
This commit is contained in:
Catherine Luse 2022-06-13 16:10:34 -07:00 committed by GitHub
commit 29b191fb00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -280,7 +280,7 @@ export default {
// If the attempt to create the new namespace
// is successful, save the resource.
this.$emit('finish');
this.$emit('finish', buttonDone);
} catch (err) {
// After the attempt to create the namespace,
// show any applicable errors if the namespace is

View File

@ -1,6 +1,7 @@
<script>
import CreateEditView from '@shell/mixins/create-edit-view';
import CruResource from '@shell/components/CruResource';
import Banner from 'pkg/rancher-components/src/components/Banner/Banner.vue';
import { MANAGEMENT } from '@shell/config/types';
import Loading from '@shell/components/Loading';
import ClusterPermissionsEditor from '@shell/components/form/Members/ClusterPermissionsEditor';
@ -8,6 +9,7 @@ import { exceptionToErrorsArray } from '@shell/utils/error';
export default {
components: {
Banner,
ClusterPermissionsEditor,
CruResource,
Loading,