Skip to content

Commit

Permalink
remove newsletter modal button
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrey-dot-li committed Aug 17, 2020
1 parent 3afb12e commit 91446bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions middleware/router-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import type {Route} from 'vue-router'
export default function({store, redirect, route} : Context)
{
// if(route.name == null) redirect ('/')
console.log(route.name);
if(route.name == "index") return;

if(store.state.auth.user != null && (route.name == null || route?.name?.split('/').some(record => record == 'auth')))
{
redirect('/home')
Expand Down
4 changes: 2 additions & 2 deletions pages/newsletters/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
<div v-if="loaded" class="w-full lg:w-1/2">
<NewsletterCard v-for="(item, index) in newsletters" :key="index" :newsletter="item"></NewsletterCard>
</div>
<vs-button warn @click="toggleNotesModal(true)" class="w-full">
<!-- <vs-button warn @click="toggleNotesModal(true)" class="w-full">
<div class="text-2xl font-ginger-b">
&nbsp; Post New Note
</div>
</vs-button>
</vs-button> -->
</div>
</template>

Expand Down

0 comments on commit 91446bb

Please sign in to comment.