Skip to content

Commit

Permalink
Fix dialog display when no auth (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey authored Apr 13, 2024
1 parent bd391e0 commit 887865a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix apply dialog display",
"packageName": "@acedatacloud/hub",
"email": "[email protected]",
"dependentChangeType": "patch"
}
7 changes: 6 additions & 1 deletion src/components/application/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
</el-button>
</span>
<span class="ml-1">{{ $t('chat.message.tryForFree') }}</span>
<application-confirm v-if="service" v-model.visible="confirming" :service="service" @apply="onApply" />
<application-confirm
v-if="service && authenticated"
v-model.visible="confirming"
:service="service"
@apply="onApply"
/>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/store/chat/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const getApplication = async ({
state.status.getApplication = Status.Request;
applicationOperator
.getAll({
user_id: rootState.user.id,
user_id: rootState?.user?.id,
service_id: CHAT_SERVICE_ID
})
.then((response) => {
Expand Down

0 comments on commit 887865a

Please sign in to comment.