Skip to content
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
31 changes: 30 additions & 1 deletion src/components/AdminSettings/SignalingServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,24 @@
</template>
</NcButton>

<span v-if="server">{{ connectionState }}</span>
<div v-if="server">
<div class="testing-icon">
<NcLoadingIcon v-if="!checked" :size="20" />
<AlertCircle v-else-if="errorMessage" :size="20" :fill-color="'#E9322D'" />
<Check v-else :size="20" :fill-color="'#46BA61'" />
</div>
<div class="testing-label">
{{ connectionState }}
</div>
</div>
</div>
</template>

<script>
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import AlertCircle from 'vue-material-design-icons/AlertCircle.vue'
import Check from 'vue-material-design-icons/Check.vue'
import Delete from 'vue-material-design-icons/Delete.vue'
import { getWelcomeMessage } from '../../services/signalingService.js'

Expand All @@ -61,6 +73,9 @@ export default {

components: {
NcButton,
NcLoadingIcon,
AlertCircle,
Check,
Delete,
},

Expand Down Expand Up @@ -175,5 +190,19 @@ export default {
margin: 0 20px;
display: inline-block;
}

.testing-icon{
display: inline-block;
height: 20px;
line-height: 44px;
vertical-align: middle;
}

.testing-label {
display: inline-block;
height: 44px;
line-height: 44px;
vertical-align: middle;
}
}
</style>
2 changes: 1 addition & 1 deletion src/components/AdminSettings/StunServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
type="tertiary-no-background"
:aria-label="t('spreed', 'The server address is invalid')">
<template #icon>
<AlertCircle />
<AlertCircle :fill-color="'#E9322D'" />
</template>
</NcButton>
<NcButton v-show="!loading"
Expand Down
4 changes: 2 additions & 2 deletions src/components/AdminSettings/TurnServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
@click="testServer">
<template #icon>
<span v-if="testing" class="icon icon-loading-small" />
<AlertCircle v-else-if="testingError" />
<Check v-else-if="testingSuccess" />
<AlertCircle v-else-if="testingError" :fill-color="'#E9322D'" />
<Check v-else-if="testingSuccess" :fill-color="'#46BA61'" />
<CategoryMonitoring v-else />
</template>
</NcButton>
Expand Down