Skip to content

Conversation

tiwari-nishant
Copy link

safeModeGetter: (state) => state.safeMode,
serverStatusGetter: (state) => state.serverStatus,
isServiceUser: (state) =>
state.currentUser?.RoleId === 'OemIBMServiceAgent' || !state.currentUser,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

state currentUser is neither initialised nor assigned a value anywhere in the file. getCurrentUser() and getAccountService() functions need to be included from older file. Or directly state userPrivilege can be used as well to get the role id of the user.

return globalStore.isInPhypStandby;
});
const isServiceUser = computed(() => {
return globalStore.isServiceUser;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is returning as true for all users(eg: admin)

function resetConfirm() {
confirm.value = false;
v$.value.$reset()
emitUpdate('update:openResetModal',false)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we using these emits anywhere?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes the root component PCIeToppology uses it to get the updated value

@tiwari-nishant tiwari-nishant force-pushed the pcie_topology branch 2 times, most recently from 01a9938 to 2d59a4c Compare December 6, 2024 09:49
@Nikhil-Ashoka Nikhil-Ashoka self-requested a review December 6, 2024 15:50
@rfrandse rfrandse merged commit 9fab780 into ibm-openbmc:1060-vue3 Dec 6, 2024
rfrandse pushed a commit that referenced this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants