@7365admin1/layer-common 4.97.1-staging.525 → 4.97.1-staging.526
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/components/BuildingUnitFormAdd.vue +1 -1
- package/components/BuildingUnitFormEdit.vue +3 -2
- package/components/BulletinBoardManagement.vue +1 -1
- package/components/CameraMain.vue +1 -1
- package/components/UnitPersonCard.vue +1 -1
- package/components/UnitTenancies.vue +5 -4
- package/components/VehicleManagement.vue +1 -1
- package/package.json +1 -1
- package/plugins/vuetify.ts +6 -0
|
@@ -387,7 +387,7 @@ async function submit() {
|
|
|
387
387
|
emit("success");
|
|
388
388
|
} catch (error: any) {
|
|
389
389
|
message.value =
|
|
390
|
-
error.response?._data?.message || "
|
|
390
|
+
error.response?._data?.message || "Could not add the unit. Please try again.";
|
|
391
391
|
showMessage(message.value, "error");
|
|
392
392
|
} finally {
|
|
393
393
|
disable.value = false;
|
|
@@ -536,7 +536,8 @@ async function submit() {
|
|
|
536
536
|
|
|
537
537
|
await updateById(buildingUnit.value._id ?? "", {
|
|
538
538
|
name: buildingUnit.value.name,
|
|
539
|
-
level
|
|
539
|
+
// The level arrives as a populated object, or as a bare id when it could not be looked up.
|
|
540
|
+
level: (buildingUnit.value.level as any)?._id ?? buildingUnit.value.level ?? "",
|
|
540
541
|
// category: buildingUnit.value.category,
|
|
541
542
|
buildingUnitFiles: (buildingUnit.value.buildingUnitFiles as string[] || []).map((id) => ({ id, name: buildingUnitFilesNames.value[id] ?? "" })),
|
|
542
543
|
companyName: buildingUnit.value.companyName,
|
|
@@ -550,7 +551,7 @@ async function submit() {
|
|
|
550
551
|
emit("success");
|
|
551
552
|
} catch (error: any) {
|
|
552
553
|
message.value =
|
|
553
|
-
error.response?._data?.message || "
|
|
554
|
+
error.response?._data?.message || "Could not save the unit. Please try again.";
|
|
554
555
|
} finally {
|
|
555
556
|
disable.value = false;
|
|
556
557
|
}
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
</v-dialog>
|
|
76
76
|
|
|
77
77
|
<v-dialog v-model="dialog.deletePrompt" width="450" persistent>
|
|
78
|
-
<CardDeleteConfirmation prompt-title="Are you sure want to delete this announcement?"
|
|
78
|
+
<CardDeleteConfirmation prompt-title="Are you sure you want to delete this announcement?"
|
|
79
79
|
:loading="loading.deletingAnnouncement" @close="dialog.deletePrompt = false"
|
|
80
80
|
@delete="handleProceedDeleteAnnouncement" />
|
|
81
81
|
</v-dialog>
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
style="max-height: 100vh; overflow-y: auto"
|
|
289
289
|
class="pa-5 my-5 px-7 text-center"
|
|
290
290
|
>
|
|
291
|
-
Are you sure want to delete this {{ camera.type }} camera?
|
|
291
|
+
Are you sure you want to delete this {{ camera.type }} camera?
|
|
292
292
|
</v-card-text>
|
|
293
293
|
|
|
294
294
|
<v-toolbar class="pa-0" density="compact">
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
<v-dialog v-model="dialog.showPrompt" persistent width="540">
|
|
72
72
|
<DialogReusablePrompt :loading="loadingOwnerProcessing"
|
|
73
|
-
:prompt-title="`Are you sure want to ${person.isOwner ? 'remove' : 'add'} (${person.name}) as owner ?`"
|
|
73
|
+
:prompt-title="`Are you sure you want to ${person.isOwner ? 'remove' : 'add'} (${person.name}) as owner ?`"
|
|
74
74
|
@proceed="handleApprove(person)" @close="dialog.showPrompt = false" />
|
|
75
75
|
</v-dialog>
|
|
76
76
|
</v-card-text>
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
<v-col cols="12">
|
|
23
23
|
<AppCard class="pa-4">
|
|
24
24
|
<div class="d-flex align-center flex-wrap ga-2 mb-3">
|
|
25
|
+
<span class="text-body-2">Ending in the next</span>
|
|
25
26
|
<v-btn-toggle v-model="days" mandatory density="comfortable" variant="outlined" divided data-test="tn-days" @update:model-value="load">
|
|
26
|
-
<v-btn :value="30" class="text-none">
|
|
27
|
-
<v-btn :value="60" class="text-none">
|
|
28
|
-
<v-btn :value="90" class="text-none">
|
|
27
|
+
<v-btn :value="30" class="text-none">30 days</v-btn>
|
|
28
|
+
<v-btn :value="60" class="text-none">60 days</v-btn>
|
|
29
|
+
<v-btn :value="90" class="text-none">90 days</v-btn>
|
|
29
30
|
</v-btn-toggle>
|
|
30
31
|
<v-spacer />
|
|
31
32
|
<v-btn variant="text" icon="mdi-refresh" aria-label="Refresh" :loading="loading" @click="load" />
|
|
@@ -217,7 +218,7 @@ async function confirmRenew() {
|
|
|
217
218
|
leaseEnd: `${renewEnd.value}T23:59`,
|
|
218
219
|
});
|
|
219
220
|
renewOpen.value = false;
|
|
220
|
-
say(`Tenancy for ${current.value.unit} renewed to ${renewEnd.value}.`);
|
|
221
|
+
say(`Tenancy for ${current.value.unit} renewed to ${new Date(`${renewEnd.value}T00:00`).toLocaleDateString("en-GB", { day: "2-digit", month: "short", year: "numeric" })}.`);
|
|
221
222
|
await load();
|
|
222
223
|
} catch (e: any) {
|
|
223
224
|
renewError.value = message(e, "The tenancy could not be renewed. Please try again.");
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
snackbar, along with the device's raw `{"ErrorCode":...}` reply.
|
|
277
277
|
-->
|
|
278
278
|
<DialogReusablePrompt :loading="approvingVehicle" :message="actionError" message-error :no-permission="revoked.approve"
|
|
279
|
-
:prompt-title="`Are you sure want to approve this vehicle - ${selectedPlateNumberObject?.plateNumber}?`"
|
|
279
|
+
:prompt-title="`Are you sure you want to approve this vehicle - ${selectedPlateNumberObject?.plateNumber}?`"
|
|
280
280
|
@proceed="submitApprove" @close="closeActionDialog('approveVehicle')" />
|
|
281
281
|
</v-dialog>
|
|
282
282
|
<!-- Like Delete, Restore says what it does at the barrier: a whitelist
|
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.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.526",
|
|
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.",
|
package/plugins/vuetify.ts
CHANGED
|
@@ -129,6 +129,12 @@ export default defineNuxtPlugin((app) => {
|
|
|
129
129
|
density: "comfortable",
|
|
130
130
|
menuProps: { attach: document.body, zIndex: 3000 },
|
|
131
131
|
},
|
|
132
|
+
// Same look as the other fields: without this every combobox drew grey and filled.
|
|
133
|
+
VCombobox: {
|
|
134
|
+
variant: "outlined",
|
|
135
|
+
density: "comfortable",
|
|
136
|
+
menuProps: { attach: document.body, zIndex: 3000 },
|
|
137
|
+
},
|
|
132
138
|
VSelect: {
|
|
133
139
|
variant: "outlined",
|
|
134
140
|
density: "comfortable",
|