@eeplatform/nuxt-layer-common 1.7.36 → 1.7.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.38
4
+
5
+ ### Patch Changes
6
+
7
+ - ddb3d8b: Fix enrollment preview action
8
+
9
+ ## 1.7.37
10
+
11
+ ### Patch Changes
12
+
13
+ - d35d59f: Fix enrollment application preview component
14
+
3
15
  ## 1.7.36
4
16
 
5
17
  ### Patch Changes
@@ -541,10 +541,7 @@
541
541
 
542
542
  <v-toolbar class="pa-0" density="compact">
543
543
  <v-row no-gutters>
544
- <v-col
545
- :cols="localProps.application?.status === 'pending' ? '6' : '12'"
546
- class="pa-0"
547
- >
544
+ <v-col :cols="localProps.noAction ? '12' : '6'" class="pa-0">
548
545
  <v-btn
549
546
  block
550
547
  variant="text"
@@ -557,42 +554,44 @@
557
554
  </v-btn>
558
555
  </v-col>
559
556
 
560
- <v-col
561
- v-if="localProps.application?.status === 'pending'"
562
- cols="6"
563
- class="pa-0"
564
- >
565
- <v-menu>
566
- <template #activator="{ props }">
567
- <v-btn
568
- block
569
- variant="flat"
570
- color="black"
571
- class="text-none"
572
- size="large"
573
- height="48"
574
- v-bind="props"
575
- tile
576
- >
577
- More actions
578
- </v-btn>
579
- </template>
580
-
581
- <v-list class="pa-0">
582
- <v-list-item @click="emits('accept')">
583
- <v-list-item-title class="text-subtitle-1 font-weight-medium">
584
- Accept Application
585
- </v-list-item-title>
586
- </v-list-item>
587
-
588
- <v-list-item @click="emits('reject')" class="text-red">
589
- <v-list-item-title class="text-subtitle-1 font-weight-medium">
590
- Reject Application
591
- </v-list-item-title>
592
- </v-list-item>
593
- </v-list>
594
- </v-menu>
595
- </v-col>
557
+ <slot name="action">
558
+ <v-col
559
+ v-if="localProps.application?.status === 'pending'"
560
+ cols="6"
561
+ class="pa-0"
562
+ >
563
+ <v-menu>
564
+ <template #activator="{ props }">
565
+ <v-btn
566
+ block
567
+ variant="flat"
568
+ color="black"
569
+ class="text-none"
570
+ size="large"
571
+ height="48"
572
+ v-bind="props"
573
+ tile
574
+ >
575
+ More actions
576
+ </v-btn>
577
+ </template>
578
+
579
+ <v-list class="pa-0">
580
+ <v-list-item @click="emits('accept')">
581
+ <v-list-item-title class="text-subtitle-1 font-weight-medium">
582
+ Accept Application
583
+ </v-list-item-title>
584
+ </v-list-item>
585
+
586
+ <v-list-item @click="emits('reject')" class="text-red">
587
+ <v-list-item-title class="text-subtitle-1 font-weight-medium">
588
+ Reject Application
589
+ </v-list-item-title>
590
+ </v-list-item>
591
+ </v-list>
592
+ </v-menu>
593
+ </v-col>
594
+ </slot>
596
595
  </v-row>
597
596
  </v-toolbar>
598
597
  </v-card>
@@ -603,6 +602,10 @@ const localProps = defineProps({
603
602
  application: {
604
603
  default: () => useEnrollment().enrollment.value,
605
604
  },
605
+ noAction: {
606
+ type: Boolean,
607
+ default: false,
608
+ },
606
609
  });
607
610
 
608
611
  const placeOfBirth = computed(() => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@eeplatform/nuxt-layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.7.36",
5
+ "version": "1.7.38",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"