reminders: Hide message menu reminder's option behind features_flag.

This commit is contained in:
Aditya Bansal 2018-01-20 08:22:45 +05:30
parent dd0e6c8025
commit 0ec50d8cc8
3 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@ exports.propagate_topic_edits = true;
exports.clicking_notification_causes_narrow = true;
exports.collapsible = false;
exports.dropbox_integration = false;
exports.reminders_in_message_action_menu = false;
return exports;

View File

@ -192,6 +192,7 @@ exports.toggle_actions_popover = function (element, id) {
conversation_time_uri: narrow.by_conversation_and_time_uri(message, true),
narrowed: narrow_state.active(),
should_display_delete_option: should_display_delete_option,
should_display_reminder_option: feature_flags.reminders_in_message_action_menu,
};
var ypos = elt.offset().top;

View File

@ -13,11 +13,13 @@
</a>
</li>
{{#if should_display_reminder_option}}
<li>
<a href="#" class='reminder_button' data-message-id="{{message.id}}">
<i class="fa fa-bell" aria-hidden="true"></i> {{t "Remind me about this" }}
</a>
</li>
{{/if}}
{{#if should_display_collapse}}
<li>