Skip to content

Commit

Permalink
Merge pull request #216 from R-Sourabh/#214-delay-user
Browse files Browse the repository at this point in the history
Fixed: case to not display the previous created/selected user information on creating new user by adding a loader(#214)
  • Loading branch information
ymaheshwari1 authored Apr 19, 2024
2 parents d652ec8 + 28fc9b1 commit e1a6ead
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit e1a6ead

Please sign in to comment.