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:
loganhz 2018-01-17 20:36:29 +08:00
parent e2674743b5
commit c84a454c8b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
},