소스 검색

modtools: Also allow querying and setting no affliation

JC Brand 5 년 전
부모
커밋
3fee5540a0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/converse-muc-views.js

+ 1 - 1
src/converse-muc-views.js

@@ -258,7 +258,7 @@ converse.plugins.add('converse-muc-views', {
 
                 return tpl_moderator_tools_modal(Object.assign(this.model.toJSON(), {
                     '__': __,
-                    'affiliations': AFFILIATIONS,
+                    'affiliations': [...AFFILIATIONS, 'none'],
                     'allowed_affiliations': allowed_affiliations,
                     'allowed_roles': allowed_roles,
                     'loading_users_with_affiliation': this.loading_users_with_affiliation,