New admin interface for improved channel definitions

This commit is contained in:
David Taylor
2017-07-18 16:17:03 +01:00
parent 1ef9073027
commit bdb81191d7
24 changed files with 514 additions and 308 deletions
@@ -0,0 +1,14 @@
import RestModel from 'discourse/models/rest';
export default RestModel.extend({
updateProperties() {
var prop_names = ['data'];
return this.getProperties(prop_names);
},
createProperties() {
var prop_names = ['provider','data'];
return this.getProperties(prop_names);
}
});
+5 -5
View File
@@ -11,9 +11,8 @@ export default RestModel.extend({
category_id: null,
tags: null,
provider: '',
channel: '',
filter: null,
channel_id: null,
filter: 'watch',
error_key: null,
@computed('category_id')
@@ -31,12 +30,13 @@ export default RestModel.extend({
},
updateProperties() {
var prop_names = ['category_id','provider','channel', 'tags','filter'];
var prop_names = ['category_id','tags','filter'];
return this.getProperties(prop_names);
},
createProperties() {
return this.updateProperties();
var prop_names = ['channel_id', 'category_id','tags','filter'];
return this.getProperties(prop_names);
}
});