Skip to content

Commit b215ad2

Browse files
luizhf42gustavosbarreto
authored andcommitted
refactor(ui): replace useless computed props with destructuring
1 parent 35bf595 commit b215ad2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/src/components/Setting/SettingProfile.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,13 @@ const store = useStore();
247247
const editDataStatus = ref(false);
248248
const editPasswordStatus = ref(false);
249249
const mfaEnabled = computed(() => store.getters["auth/isMfa"]);
250-
const isEnterprise = computed(() => envVariables.isEnterprise);
251-
const isCloud = computed(() => envVariables.isCloud);
252-
const isCommunity = computed(() => envVariables.isCommunity);
253250
const dialogMfaSettings = ref(false);
254251
const dialogMfaDisable = ref(false);
255252
const showChangePassword = ref(false);
256253
const showDeleteAccountDialog = ref(false);
257254
const getAuthMethods = computed(() => store.getters["auth/getAuthMethods"]);
258255
const isLocalAuth = computed(() => getAuthMethods.value.includes("local"));
256+
const { isCloud, isCommunity } = envVariables;
259257
const { lgAndUp } = useDisplay();
260258
261259
const {

0 commit comments

Comments
 (0)