Commit 2b3b1588 authored by Georgios Ouzounis's avatar Georgios Ouzounis
Browse files

Handle the case where the user removes all added topics from one tokenfield

parent f3d6995c
......@@ -304,10 +304,18 @@ export default Ember.Controller.extend({
},
kafkaInputTopicsObserver: Ember.observer('kafkaInputTopics', function() {
if(this.get('kafkaInputTopics').get('length') === 0){
this.set('kafkaInputTopics', ["input"]);
}
this.parseKafkaTopics();
}),
kafkaOutputTopicsObserver: Ember.observer('kafkaOutputTopics', function() {
if(this.get('kafkaOutputTopics').get('length') === 0){
this.set('kafkaOutputTopics', ["batch-output", "stream-output"]);
}
this.parseKafkaTopics();
}),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment