Skip to content

Commit

Permalink
✨ Add button to create event in list (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaloLebrin authored Feb 26, 2024
1 parent 34cf50d commit 84b2b4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 1 addition & 2 deletions components/Menu/MenuBasic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
ul
/>

<Tricks v-if="!authStore.isAuthUserAdmin" />
<!-- <Tricks v-if="!authStore.isAuthUserAdmin" /> -->
</ul>
</nav>
</template>

<script setup lang="ts">
import { ADMIN_MENU_ITEMS, MENU_ITEMS } from '~~/helpers/menu'
import Tricks from '~~/components/Tricks/Tricks.server.vue'
import { useAuthStore } from '~~/store/auth'
import MenuRecursiveList from '~/components/Menu/MenuRecursiveList.vue'
Expand Down
2 changes: 1 addition & 1 deletion components/Payment/PaymentButton.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<button
type="button"
:disabled="!isDisabled"
:disabled="isDisabled"
class="w-full px-4 py-3 text-base font-medium text-white bg-indigo-600 border border-transparent rounded-md shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-50"
:class="[
isDisabled ? '' : 'disabled:cursor-not-allowed disabled:opacity-50',
Expand Down
8 changes: 8 additions & 0 deletions pages/evenement/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
<EventTableFilters @setFilter="setEventStatusFilter" />

<div class="flex items-center space-x-2">
<BaseButton
:is-loading="uiStore.getUIIsLoading"
:disabled="uiStore.getUIIsLoading"
:href="{ name: RouteNames.CREATE_EVENT_STEP_1 }"
color="white"
>
Créer un nouveau
</BaseButton>
<BaseButton
:is-loading="uiStore.getUIIsLoading"
:disabled="uiStore.getUIIsLoading"
Expand Down

0 comments on commit 84b2b4c

Please sign in to comment.