@7365admin1/layer-common 4.0.3-staging.226 → 4.0.3-staging.227

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.
@@ -14,7 +14,7 @@
14
14
  >
15
15
  <v-row no-gutters>
16
16
  <template v-for="(label, key) in formattedFields" :key="key">
17
- <v-col cols="12" class="mb-5">
17
+ <v-col v-if="shouldShowField(key)" cols="12" class="mb-5">
18
18
  <v-row no-gutters class="">
19
19
  <v-col class="font-weight-bold">{{ label }}:</v-col>
20
20
 
@@ -311,6 +311,10 @@ function getFieldValue(key: keyof TAnnouncement) {
311
311
  }
312
312
  }
313
313
 
314
+ function shouldShowField(key: string) {
315
+ return key !== "endDate" || !prop.activeAnnouncement?.noExpiration;
316
+ }
317
+
314
318
  const rawFileArray = ref<{ file: File; _id: string; preview: boolean }[]>([]);
315
319
 
316
320
  const photosArray = getByType("image/");
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.0.3-staging.226",
5
+ "version": "4.0.3-staging.227",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",