", data.isVerified);
+ console.log("roleRegistryverify===>", roleRegistryverify.value);
+ console.log("roleKeyregistry===>", roleKeyregistry.value);
+ if (data.isVerified || roleRegistryverify.value) {
+ profileStore.isEdit = false;
+ } else {
+ profileStore.isEdit = true;
+ }
})
.catch((err) => {
messageError($q, err);
diff --git a/src/modules/04_registry/store.ts b/src/modules/04_registry/store.ts
index b41fae61f..4296aba60 100644
--- a/src/modules/04_registry/store.ts
+++ b/src/modules/04_registry/store.ts
@@ -3,6 +3,7 @@ import { defineStore } from "pinia";
export const useProfileDataStore = defineStore("profile", () => {
const isVerified = ref(false);
+ const isEdit = ref(false);
const emplployeeClass = ref("");
interface profile {
main: { columns: String[] };
@@ -79,6 +80,7 @@ export const useProfileDataStore = defineStore("profile", () => {
return {
isLoad,
isVerified,
+ isEdit,
profileData,
changeProfileColumns,
birthDate,