discourse/app/assets/javascripts/discourse/views/invite.js.es6
2015-04-03 15:00:04 +05:30

16 lines
474 B
JavaScript

import ModalBodyView from "discourse/views/modal-body";
export default ModalBodyView.extend({
templateName: 'modal/invite',
title: function() {
if (this.get('controller.isMessage')) {
return I18n.t('topic.invite_private.title');
} else if (this.get('controller.invitingToTopic')) {
return I18n.t('topic.invite_reply.title');
} else {
return I18n.t('user.invited.create');
}
}.property('controller.{invitingToTopic,isMessage}')
});