"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/assets/javascripts/discourse/models/tag-group.js.es6" between
discourse-2.2.0.tar.gz and discourse-2.2.1.tar.gz

About: Discourse is a "next-generation" forum platform for community discussions.

tag-group.js.es6  (discourse-2.2.0):tag-group.js.es6  (discourse-2.2.1)
skipping to change at line 12 skipping to change at line 12
import RestModel from "discourse/models/rest"; import RestModel from "discourse/models/rest";
import computed from "ember-addons/ember-computed-decorators"; import computed from "ember-addons/ember-computed-decorators";
import PermissionType from "discourse/models/permission-type"; import PermissionType from "discourse/models/permission-type";
export default RestModel.extend({ export default RestModel.extend({
@computed("name", "tag_names", "saving") @computed("name", "tag_names", "saving")
disableSave(name, tagNames, saving) { disableSave(name, tagNames, saving) {
return saving || Ember.isEmpty(name) || Ember.isEmpty(tagNames); return saving || Ember.isEmpty(name) || Ember.isEmpty(tagNames);
}, },
@computed("id")
disableDelete(id) {
return !parseInt(id);
},
@computed("permissions") @computed("permissions")
permissionName: { permissionName: {
get(permissions) { get(permissions) {
if (!permissions) return "public"; if (!permissions) return "public";
if (permissions["everyone"] === PermissionType.FULL) { if (permissions["everyone"] === PermissionType.FULL) {
return "public"; return "public";
} else if (permissions["everyone"] === PermissionType.READONLY) { } else if (permissions["everyone"] === PermissionType.READONLY) {
return "visible"; return "visible";
} else { } else {
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)