Add new info message to profile page.
This commit is contained in:
committed by
Andy Armstrong
parent
39cf0b44b5
commit
cbfea6515d
@@ -25,6 +25,11 @@
|
||||
return function(options) {
|
||||
var $learnerProfileElement = $('.wrapper-profile');
|
||||
|
||||
// TODO: LEARNER-2554: 09/2017: Remove this hiding logic when the message is removed.
|
||||
$('.action-dismiss').click(function() {
|
||||
$('.user-messages').hide();
|
||||
});
|
||||
|
||||
var accountSettingsModel = new AccountSettingsModel(
|
||||
_.extend(
|
||||
options.account_settings_data,
|
||||
|
||||
@@ -57,6 +57,13 @@
|
||||
$('.wrapper-profile-section-container-one').removeClass('is-hidden');
|
||||
$('.wrapper-profile-section-container-two').removeClass('is-hidden');
|
||||
|
||||
// Only show accomplishments if this is a full profile
|
||||
if (this.showFullProfile()) {
|
||||
$('.learner-achievements').removeClass('is-hidden');
|
||||
} else {
|
||||
$('.learner-achievements').addClass('is-hidden');
|
||||
}
|
||||
|
||||
if (this.showFullProfile() && (this.options.accountSettingsModel.get('accomplishments_shared'))) {
|
||||
tabs = [
|
||||
{view: this.sectionTwoView, title: gettext('About Me'), url: 'about_me'},
|
||||
|
||||
Reference in New Issue
Block a user