Missing trust level options on group form.

This commit is contained in:
Guo Xiang Tan 2018-03-27 19:30:53 +08:00
parent 757dd1032d
commit b06104a1da
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ export default Ember.Component.extend({
{ name: I18n.t("groups.visibility_levels.owners"), value: 3 }
],
trustLevelOptions: [
{ name: I18n.t("groups.trust_levels.none"), value: 0 },
{ name: 1, value: 1 }, { name: 2, value: 2 }, { name: 3, value: 3 }, { name: 4, value: 4 }
],
@computed('model.visibility_level', 'model.public_admission')
disableMembershipRequestSetting(visibility_level, publicAdmission) {
visibility_level = parseInt(visibility_level);