Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: case to not display the previous created/selected user information on creating new user by adding a loader(#214) #216

Merged
merged 4 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/views/UserConfirmation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
mailOutline
} from 'ionicons/icons';
import { translate } from "@hotwax/dxp-components";
import emitter from "@/event-bus";

export default defineComponent({
name: "UserConfirmation",
Expand All @@ -95,7 +96,9 @@
},
props: ['partyId'],
async ionViewWillEnter() {
emitter.emit('presentLoader')
await this.store.dispatch("user/getSelectedUserDetails", { partyId: this.partyId });
emitter.emit('dismissLoader')
},
methods: {
async quickSetup() {
Expand Down
6 changes: 5 additions & 1 deletion src/views/Users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</div>

<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button :disabled="!hasPermission(Actions.APP_USER_CREATE)" @click="router.push('/create-user')">
<ion-fab-button :disabled="!hasPermission(Actions.APP_USER_CREATE)" @click="createUser()">
<ion-icon :icon="addOutline" />
</ion-fab-button>
</ion-fab>
Expand Down Expand Up @@ -236,6 +236,10 @@ export default defineComponent({
await this.store.dispatch('util/getSecurityGroups')
},
methods: {
createUser(){
this.store.dispatch('user/clearSelectedUser');
this.router.push('/create-user');
},
enableScrolling() {
const parentElement = (this as any).$refs.contentRef.$el
const scrollEl = parentElement.shadowRoot.querySelector("main[part='scroll']")
Expand Down
Loading