Skip to content

Commit

Permalink
Fixed bug where the user poposer only showed in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed May 30, 2021
1 parent 62aba9d commit a53b3a1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
19 changes: 12 additions & 7 deletions website/macos-big-sur-icons/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- <div v-if="true">
{{ toggleOverflow() }}
</div> -->

<OptionsMenu :optionsList="optionsList"/>
<Dialog/>
<SubmissionDialog/>
<LoginDialog/>
Expand Down Expand Up @@ -56,12 +56,15 @@
<!-- Account Profile -->
<div v-if="getUser.isAuth" class="profile-nav">
<img
id="profilePicNav"
@click="showEl('profileNavPopover')"
id="profilePicNav-mobile"
@click="showEl({
elId: 'profileNavPopover',
targetId: 'profilePicNav-mobile'
})"
class="profile-pic-nav m-l-5"
:src="icons.profilePic" alt=""
>
<OptionsMenu :optionsList="optionsList"/>
<!-- <OptionsMenu :optionsList="optionsList"/> -->
</div>

<!-- Back to all icons -->
Expand Down Expand Up @@ -218,12 +221,14 @@
</button>

<img
id="profilePicNav"
@click="showEl('profileNavPopover')"
id="profilePicNav-desktop"
@click="showEl({
elId: 'profileNavPopover',
targetId: 'profilePicNav-desktop'
})"
class="profile-pic-nav m-l-5"
:src="icons.profilePic" alt=""
>
<OptionsMenu :optionsList="optionsList"/>
</div>

<!-- Submit icons -->
Expand Down
2 changes: 0 additions & 2 deletions website/macos-big-sur-icons/src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ import dotenv from 'dotenv'; // Used to access env varaibles
dotenv.config()
// TODO: remove credentials
const VUE_APP_PARSE_APP_ID = process.env.VUE_APP_PARSE_APP_ID
const VUE_APP_PARSE_JAVASCRIPT_KEY = process.env.VUE_APP_PARSE_JAVASCRIPT_KEY
Expand All @@ -226,7 +225,6 @@ var Icons = Parse.Object.extend("Icons2");
let algolia = {
// TODO: remove credentials
appid: process.env.VUE_APP_ALGOLIA_APPID,
apikey: process.env.VUE_APP_ALGOLIA_KEY
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<coral-dialog id="submissionDialog" focusOnShow="off">
<coral-dialog id="submissionDialog">

<coral-dialog-header>
Submit an icon
Expand Down
10 changes: 9 additions & 1 deletion website/macos-big-sur-icons/src/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,15 @@ export default new Vuex.Store({
},

showEl(store, id){
document.getElementById(id).show()
console.log(id);
if(id.elId != undefined){
console.log(document.getElementById(id.elId));
document.getElementById(id.elId).target = "#"+id.targetId
document.getElementById(id.elId).show()
console.log("Hoiii");
} else{
document.getElementById(id).show()
}
},

setUser(store, user){
Expand Down

0 comments on commit a53b3a1

Please sign in to comment.