mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 20:07:52 -05:00
16 lines
474 B
JavaScript
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}')
|
|
|
|
});
|