1. We can not use this feature as admins 2. It will be inconsistent if admins don't have it and others do 3. inviting people by mistake is no good tab enter should do fine
22 lines
477 B
JavaScript
22 lines
477 B
JavaScript
/**
|
|
A modal view for inviting a user to Discourse
|
|
|
|
@class InviteView
|
|
@extends Discourse.ModalBodyView
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.InviteView = Discourse.ModalBodyView.extend({
|
|
templateName: 'modal/invite',
|
|
|
|
title: function() {
|
|
if (this.get('controller.invitingToTopic')) {
|
|
return I18n.t('topic.invite_reply.title');
|
|
} else {
|
|
return I18n.t('user.invited.create');
|
|
}
|
|
}.property('controller.invitingToTopic')
|
|
});
|
|
|
|
|