|
|
@@ -226,6 +226,12 @@
|
|
|
>
|
|
|
<div class="settings-panel q-pa-md">
|
|
|
<div class="column q-gutter-y-sm">
|
|
|
+ <div>
|
|
|
+ <span class="text-caption text-grey-6">Nome da Unidade</span>
|
|
|
+ <div class="text-body2 text-primary text-weight-medium ellipsis">
|
|
|
+ {{ unitInfo.name || "Não informado" }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div>
|
|
|
<span class="text-caption text-grey-6">Nome fantasia</span>
|
|
|
<div class="text-body2 text-primary text-weight-medium ellipsis">
|
|
|
@@ -289,6 +295,7 @@ import { userStore } from "src/stores/user";
|
|
|
import { useAuth } from "src/composables/useAuth";
|
|
|
import DefaultSelect from "src/components/defaults/DefaultSelect.vue";
|
|
|
import { getUnitMe } from "src/api/unit";
|
|
|
+import { formatUnitName } from "src/helpers/utils";
|
|
|
import {
|
|
|
getMyNotifications,
|
|
|
getUnreadCount,
|
|
|
@@ -328,8 +335,7 @@ const userUnits = computed(() => store.user?.units ?? []);
|
|
|
const user = computed(() => store.user);
|
|
|
const unitDetails = ref(null);
|
|
|
const unitInfo = computed(() => unitDetails.value || store.selectedUnit || {});
|
|
|
-const getUnitLabel = (unit) =>
|
|
|
- unit?.fantasy_name || unit?.social_reason || "Unidade sem nome";
|
|
|
+const getUnitLabel = (unit) => formatUnitName(unit);
|
|
|
|
|
|
// ------------------- Notificações (sino) -------------------
|
|
|
const notifications = ref([]);
|