Skip to content

Commit

Permalink
Merge pull request #13988 from nextcloud/backport/13985/stable30
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy authored Dec 12, 2024
2 parents 2b53735 + fada4ee commit 307f0e6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 21 deletions.
31 changes: 22 additions & 9 deletions src/components/AdminSettings/RecordingServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,38 @@

<NcButton v-show="!loading"
type="tertiary"
:title="t('spreed', 'Delete this server')"
:aria-label="t('spreed', 'Delete this server')"
@click="removeServer">
<template #icon>
<Delete :size="20" />
<IconDelete :size="20" />
</template>
</NcButton>

<span v-if="server" class="test-connection">
<NcLoadingIcon v-if="!checked" :size="20" />
<AlertCircle v-else-if="errorMessage" :size="20" :fill-color="'#E9322D'" />
<Check v-else :size="20" :fill-color="'#46BA61'" />
<IconAlertCircle v-else-if="errorMessage" :size="20" fill-color="var(--color-error)" />
<IconCheck v-else :size="20" fill-color="var(--color-success)" />
{{ connectionState }}
</span>

<NcButton v-if="server && checked"
type="tertiary"
:title="t('spreed', 'Test this server')"
:aria-label="t('spreed', 'Test this server')"
@click="checkServerVersion">
<template #icon>
<IconReload :size="20" />
</template>
</NcButton>
</li>
</template>

<script>
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 IconAlertCircle from 'vue-material-design-icons/AlertCircle.vue'
import IconCheck from 'vue-material-design-icons/Check.vue'
import IconDelete from 'vue-material-design-icons/Delete.vue'
import IconReload from 'vue-material-design-icons/Reload.vue'

import { t } from '@nextcloud/l10n'

Expand All @@ -57,9 +69,10 @@ export default {
name: 'RecordingServer',

components: {
AlertCircle,
Check,
Delete,
IconAlertCircle,
IconCheck,
IconDelete,
IconReload,
NcButton,
NcCheckboxRadioSwitch,
NcLoadingIcon,
Expand Down
37 changes: 25 additions & 12 deletions src/components/AdminSettings/SignalingServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,40 @@

<NcButton v-show="!loading"
type="tertiary"
:title="t('spreed', 'Delete this server')"
:aria-label="t('spreed', 'Delete this server')"
@click="removeServer">
<template #icon>
<Delete :size="20" />
<IconDelete :size="20" />
</template>
</NcButton>

<span v-if="server" class="test-connection">
<NcLoadingIcon v-if="!checked" :size="20" />
<AlertCircle v-else-if="errorMessage" :size="20" :fill-color="'#D91812'" />
<AlertCircleOutline v-else-if="warningMessage" :size="20" :fill-color="'#C28900'" />
<Check v-else :size="20" :fill-color="'#2D7B41'" />
<IconAlertCircle v-else-if="errorMessage" :size="20" fill-color="var(--color-error)" />
<IconAlertCircleOutline v-else-if="warningMessage" :size="20" fill-color="var(--color-warning)" />
<IconCheck v-else :size="20" fill-color="var(--color-success)" />
{{ connectionState }}
</span>

<NcButton v-if="server && checked"
type="tertiary"
:title="t('spreed', 'Test this server')"
:aria-label="t('spreed', 'Test this server')"
@click="checkServerVersion">
<template #icon>
<IconReload :size="20" />
</template>
</NcButton>
</li>
</template>

<script>
import AlertCircle from 'vue-material-design-icons/AlertCircle.vue'
import AlertCircleOutline from 'vue-material-design-icons/AlertCircleOutline.vue'
import Check from 'vue-material-design-icons/Check.vue'
import Delete from 'vue-material-design-icons/Delete.vue'
import IconAlertCircle from 'vue-material-design-icons/AlertCircle.vue'
import IconAlertCircleOutline from 'vue-material-design-icons/AlertCircleOutline.vue'
import IconCheck from 'vue-material-design-icons/Check.vue'
import IconDelete from 'vue-material-design-icons/Delete.vue'
import IconReload from 'vue-material-design-icons/Reload.vue'

import { t } from '@nextcloud/l10n'

Expand All @@ -58,10 +70,11 @@ export default {
name: 'SignalingServer',

components: {
AlertCircle,
AlertCircleOutline,
Check,
Delete,
IconAlertCircle,
IconAlertCircleOutline,
IconCheck,
IconDelete,
IconReload,
NcButton,
NcCheckboxRadioSwitch,
NcLoadingIcon,
Expand Down

0 comments on commit 307f0e6

Please sign in to comment.