Skip to content
Draft
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
10 changes: 8 additions & 2 deletions src/components/standalone/NeStepper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
import { NeProgressBar } from '@nethesis/vue-components'
import { range } from 'lodash-es'

defineProps<{
const {
totalSteps,
currentStep,
stepLabel,
labelColorClasses = 'text-primary-600 dark:text-primary-500'
} = defineProps<{
totalSteps: number
currentStep: number
stepLabel: string
labelColorClasses?: string
}>()
</script>

Expand All @@ -19,7 +25,7 @@ defineProps<{
<NeProgressBar :progress="(currentStep / totalSteps) * 100" size="sm" />
<div class="mt-2 flex flex-row">
<div v-for="i in range(1, totalSteps + 1)" :key="i" class="flex grow basis-0 justify-center">
<p v-if="i == currentStep" class="text-xs font-semibold text-primary-400">
<p v-if="i == currentStep" class="text-xs font-semibold" :class="labelColorClasses">
{{ stepLabel }} {{ currentStep }}/{{ totalSteps }}
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/standalone/firewall/nat/NatRulesContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function hideCreateOrEditRuleDrawer() {
</div>
<NeButton
v-if="loading.listRules || natRules.length"
kind="secondary"
kind="primary"
size="lg"
class="shrink-0"
@click="showCreateRuleDrawer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
useItemPagination,
useSort
} from '@nethesis/vue-components'
import { faCircleInfo, faCirclePlus, faShield, faTrash } from '@fortawesome/free-solid-svg-icons'
import { faBellSlash, faCircleInfo, faShield, faTrash } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { ubusCall } from '@/lib/standalone/ubus'
import type { AxiosResponse } from 'axios'
Expand Down Expand Up @@ -147,9 +147,9 @@ function handleDeleted() {
<NeTextInput v-model.trim="filter" :placeholder="t('common.filter')" is-search />
<NeButton kind="primary" size="lg" @click="suppressingAlert = true">
<template #prefix>
<FontAwesomeIcon :icon="faCirclePlus" aria-hidden="true" class="h-4 w-4" />
<FontAwesomeIcon :icon="faBellSlash" aria-hidden="true" class="h-4 w-4" />
</template>
{{ t('standalone.ips.add_bypass') }}
{{ t('standalone.ips.add_suppressed_alert') }}
</NeButton>
</div>
<NeTable
Expand Down Expand Up @@ -244,7 +244,7 @@ function handleDeleted() {
<NeEmptyState v-else :icon="faShield" :title="t('standalone.ips.no_suppressed_alerts')">
<NeButton kind="primary" size="lg" @click="suppressingAlert = true">
<template #prefix>
<FontAwesomeIcon :icon="faCirclePlus" aria-hidden="true" class="h-4 w-4" />
<FontAwesomeIcon :icon="faBellSlash" aria-hidden="true" class="h-4 w-4" />
</template>
{{ t('standalone.ips.add_suppressed_alert') }}
</NeButton>
Expand Down
3 changes: 3 additions & 0 deletions src/components/standalone/ssh/SshKeys.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ function handleCloseDeleteModal() {
:title="t('standalone.ssh.ssh_keys.title')"
>
<div class="space-y-4">
<p v-if="sshKeys.length > 0">
{{ t('standalone.ssh.ssh_keys.public_keys_label') }}
</p>
<ul class="space-y-2">
<li v-for="key in sshKeys" :key="key.key" class="flex items-center gap-2">
<div class="min-w-0 grow rounded border border-gray-200 p-3 text-xs dark:border-gray-700">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ useIntervalFn(
</template>
{{ t('standalone.wireguard_peers.import_peer_tunnel') }}
</NeButton>
<NeButton kind="secondary" @click="showTunnelDrawer = true">
<NeButton kind="tertiary" @click="showTunnelDrawer = true">
<template #prefix>
<FontAwesomeIcon :icon="faCirclePlus" aria-hidden="true" class="size-4" />
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@
"add_key_button": "Add key",
"unnamed_key": "Unnamed key",
"add_new_ssh_key": {
"label": "Add new SSH key",
"label": "New SSH key",
"placeholder": "Paste SSH key here..."
},
"delete_key_modal": {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@
"add_key_button": "Aggiungi chiave",
"unnamed_key": "Chiave senza nome",
"add_new_ssh_key": {
"label": "Aggiungi nuova chiave SSH",
"label": "Nuova chiave SSH",
"placeholder": "Incolla qui la chiave SSH..."
},
"delete_key_modal": {
Expand Down
Loading