Fix dialog display when no auth (#26)
This commit is contained in:
1 parent
704da3e128
commit
209f7e8371
3 files changed
+14
-2
No files matched your search
@@ -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>
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user