disable websocket connection and add condition to code to avoid breaks

This commit is contained in:
Zhigang Wang 2024-06-25 09:06:19 -07:00
parent cf46520ada
commit 557e9fc00e
2 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,7 @@ export default {
if (this.userIdentityNote.length > 8) {
this.userIdentityNote = this.userIdentityNote.slice(0, 5) + '...'
}
this.$store.dispatch('basic/initWebsocket', this.mnx_getUserAuthToken())
// this.$store.dispatch('basic/initWebsocket', this.mnx_getUserAuthToken())
},
data() {
return {

View File

@ -374,16 +374,16 @@
</div>
<div class="project-code-commits">
<label class="project-item-label">{{ $t('Commits') }}</label>
<p class="project-item-text">{{ project.project.code.total_commits }}</p>
<p class="project-item-text">{{ project.project.code?.total_commits }}</p>
</div>
<div class="project-code-last-committer">
<label class="project-item-label">{{ $t('Last committer') }}</label>
<p class="project-item-text">{{ project.project.code.last_commiter }}</p>
<p class="project-item-text">{{ project.project.code?.last_commiter }}</p>
</div>
<div class="project-code-last-update">
<label class="project-item-label">{{ $t('Update') }}</label>
<p class="project-item-text">
{{ getDateFromFulltimeString(project.project.code.last_update) }}
{{ getDateFromFulltimeString(project.project.code?.last_update) }}
</p>
</div>
</div>
@ -397,7 +397,7 @@
<div class="project-code-details-container">
<div class="project-code-git-url-container">
<button
v-if="project.project.code.git_url"
v-if="project.project.code?.git_url"
class="project-code-copy-git-url"
@click="copyCodeGit(project)"
v-tooltip
@ -812,7 +812,7 @@ export default {
}
},
getGitStatus(project) {
return project.project.code.git_url ? 'Ready' : 'Not available'
return project.project?.code?.git_url ? 'Ready' : 'Not available'
},
copyCodeGit(project) {
if (project.project.code.git_url) {