mirror of https://github.com/rancher/ui.git
Fix the issue that error message still shows up after swithed to another cloud provider
https://github.com/rancher/rancher/issues/10855
This commit is contained in:
parent
e2674743b5
commit
c84a454c8b
|
|
@ -1,5 +1,4 @@
|
|||
import Controller from '@ember/controller';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { alias } from '@ember/object/computed';
|
||||
import NewOrEdit from 'ui/mixins/new-or-edit';
|
||||
import { set, computed } from '@ember/object';
|
||||
|
|
@ -11,6 +10,7 @@ export default Controller.extend(NewOrEdit, {
|
|||
|
||||
actions: {
|
||||
switchDriver(name) {
|
||||
set(this, 'errors', []);
|
||||
set(this, 'driver', name);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue