@7365admin1/layer-common 4.0.3-staging.225 → 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.
@@ -186,14 +186,6 @@ const props = defineProps({
186
186
  type: Boolean,
187
187
  default: true,
188
188
  },
189
- canUpdate: {
190
- type: Boolean,
191
- default: true,
192
- },
193
- canDelete: {
194
- type: Boolean,
195
- default: true,
196
- },
197
189
  canCreateAccessCard: {
198
190
  type: Boolean,
199
191
  default: false,
@@ -192,10 +192,6 @@ const props = defineProps({
192
192
  type: Boolean,
193
193
  default: true,
194
194
  },
195
- canDelete: {
196
- type: Boolean,
197
- default: true,
198
- },
199
195
  canCreateBuilding: {
200
196
  type: Boolean,
201
197
  default: false,
@@ -182,14 +182,6 @@ const props = defineProps({
182
182
  type: Boolean,
183
183
  default: true,
184
184
  },
185
- canUpdate: {
186
- type: Boolean,
187
- default: true,
188
- },
189
- canDelete: {
190
- type: Boolean,
191
- default: true,
192
- },
193
185
  canCreateUnit: {
194
186
  type: Boolean,
195
187
  default: false,
@@ -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/");
@@ -649,14 +649,6 @@ const props = defineProps({
649
649
  type: Boolean,
650
650
  default: true,
651
651
  },
652
- canUpdate: {
653
- type: Boolean,
654
- default: true,
655
- },
656
- canDelete: {
657
- type: Boolean,
658
- default: true,
659
- },
660
652
  canCreateDocument: {
661
653
  type: Boolean,
662
654
  default: false,
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.225",
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.",