Skip to content
This repository was archived by the owner on Jul 9, 2019. It is now read-only.

Commit

Permalink
Redesign User Side Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Davis committed Jan 25, 2016
1 parent 8c1855e commit 784a507
Show file tree
Hide file tree
Showing 8 changed files with 2,373 additions and 127 deletions.
1,019 changes: 1,019 additions & 0 deletions assets/js/depend.js

Large diffs are not rendered by default.

329 changes: 253 additions & 76 deletions js/forum/dist/extension.js

Large diffs are not rendered by default.

316 changes: 277 additions & 39 deletions js/forum/src/components/SocialButtonsModal.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions js/forum/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ app.initializers.add('davis-socialprofile-forum', function() {
if (!this.newuser) {
for (const k in this.socialaccs) {
const curaccount = this.socialaccs[k];
if (curaccount["icon"] !== "") {
items.add(curaccount["icon"] + ' social-button', Badge.component({
if (curaccount["title"] !== "") {
items.add(curaccount["icon"] + k + ' social-button', Badge.component({
type: "social",
icon: curaccount["icon"],
label: curaccount["title"],
Expand All @@ -46,7 +46,7 @@ app.initializers.add('davis-socialprofile-forum', function() {
var settingsclass;
var settingsicon;
var settingslabel;
if (this.socialaccs["0"]["icon"] !== '' || this.socialaccs["1"]["icon"] !== '' || this.socialaccs["2"]["icon"] !== '' || this.socialaccs["3"]["icon"] !== '') {
if (this.socialaccs["0"]["title"] !== '' || this.socialaccs["1"]["title"] !== '' || this.socialaccs["2"]["title"] !== '' || this.socialaccs["3"]["title"] !== '' || this.socialaccs["4"]["title"] !== '' || this.socialaccs["5"]["title"] !== '' || this.socialaccs["6"]["title"] !== '') {
settingsclass = 'social-settings';
settingsicon = 'cog';
settingslabel = app.translator.trans('davis-socialprofile.forum.edit.edit');
Expand Down
Loading

0 comments on commit 784a507

Please sign in to comment.