Skip to content

Commit

Permalink
remove duplicate translation and add no selection hero in panel
Browse files Browse the repository at this point in the history
  • Loading branch information
J0ris-K committed Dec 12, 2024
1 parent 2f2650e commit 293396c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 33 deletions.
16 changes: 0 additions & 16 deletions @xen-orchestra/lite/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"edit": "Edit",
"edit-config": "Edit config",
"enabled": "Enabled",
"error-no-data": "Error, can't collect data.",
"error-occurred": "An error has occurred",
"export": "Export",
"export-n-vms": "Export 1 VM | Export {n} VMs",
Expand Down Expand Up @@ -105,65 +104,50 @@
"host.inactive": "Inactive",
"host-internal-networks": "Host internal networks",
"invalid-field": "Invalid field",

"job.vm-copy.bad-power-state": "VM must be halted",
"job.vm-copy.in-progress": "Copy in progress…",
"job.vm-copy.missing-vms": "No VM to copy",

"job.vm-delete.bad-power-state": "VM must be halted",
"job.vm-delete.in-progress": "Delete in progress…",
"job.vm-delete.missing-vms": "No VM to delete",

"job.vm-force-reboot.bad-power-state": "VM must be running or paused",
"job.vm-force-reboot.in-progress": "Force reboot in progress…",
"job.vm-force-reboot.missing-vms": "No VM to force reboot",

"job.vm-force-shutdown.bad-power-state": "VM must be running, suspended or paused",
"job.vm-force-shutdown.in-progress": "Force shutdown in progress…",
"job.vm-force-shutdown.missing-vms": "No VM to force shutdown",

"job.vm-export.in-progress": "Export in progress…",
"job.vm-export.missing-compression": "Compression must be provided",
"job.vm-export.missing-vms": "No VM to export",
"job.vm-export.not-allowed": "A VM is not allowed to export",

"job.vm-migrate.bad-power-state": "VM must be running",
"job.vm-migrate.in-progress": "Migrate in progress…",
"job.vm-migrate.missing-host": "Destination host must be provided",
"job.vm-migrate.missing-vms": "No VM to migrate",

"job.vm-pause.bad-power-state": "VM must be running",
"job.vm-pause.in-progress": "Pause in progress…",
"job.vm-pause.missing-vms": "No VM to pause",

"job.vm-reboot.bad-power-state": "VM must be running",
"job.vm-reboot.in-progress": "Reboot in progress…",
"job.vm-reboot.missing-vms": "No VM to reboot",

"job.vm-resume.bad-power-state": "VM must be paused or suspended",
"job.vm-resume.in-progress": "Resume in progress…",
"job.vm-resume.missing-vms": "No VM to resume",

"job.vm-shutdown.bad-power-state": "VM must be running",
"job.vm-shutdown.in-progress": "Shutdown in progress…",
"job.vm-shutdown.missing-vms": "No VM to shutdown",

"job.vm-snapshot.in-progress": "Snapshot in progress…",
"job.vm-snapshot.missing-vms": "No VM to snapshot",

"job.vm-start.bad-power-state": "VM must be halted",
"job.vm-start.in-progress": "Start in progress…",
"job.vm-start.missing-vms": "No VM to start",

"job.vm-start-on.bad-power-state": "VM must be halted",
"job.vm-start-on.in-progress": "Start in progress…",
"job.vm-start-on.missing-host": "Destination host must be provided",
"job.vm-start-on.missing-vms": "No VM to start",

"job.vm-suspend.bad-power-state": "VM must be running",
"job.vm-suspend.in-progress": "Suspend in progress…",
"job.vm-suspend.missing-vms": "No VM to suspend",

"keep-me-logged": "Keep me logged in",
"keep-page-open": "Do not refresh or quit tab before end of deployment.",
"language": "Language",
Expand Down
16 changes: 0 additions & 16 deletions @xen-orchestra/lite/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"edit": "Modifier",
"edit-config": "Modifier config",
"enabled": "Activé",
"error-no-data": "Erreur, impossible de collecter les données.",
"error-occurred": "Une erreur est survenue",
"export": "Exporter",
"export-n-vms": "Exporter 1 VM | Exporter {n} VMs",
Expand Down Expand Up @@ -105,65 +104,50 @@
"host.inactive": "Inactif | Inactif | Inactifs",
"host-internal-networks": "Réseaux internes de l'hôte",
"invalid-field": "Champ invalide",

"job.vm-copy.bad-power-state": "La VM doit être arrêtée",
"job.vm-copy.in-progress": "Copie en cours…",
"job.vm-copy.missing-vms": "Aucune VM à copier",

"job.vm-delete.bad-power-state": "La VM doit être arrêtée",
"job.vm-delete.in-progress": "Suppression en cours…",
"job.vm-delete.missing-vms": "Aucune VM à supprimer",

"job.vm-force-reboot.bad-power-state": "La VM doit être allumée ou en pause",
"job.vm-force-reboot.in-progress": "Redémarrage forcé en cours…",
"job.vm-force-reboot.missing-vms": "Aucune VM à redémarrer de force",

"job.vm-force-shutdown.bad-power-state": "La VM doit être allumée, suspendue ou en pause",
"job.vm-force-shutdown.in-progress": "Arrêt forcé en cours…",
"job.vm-force-shutdown.missing-vms": "Aucune VM à arrêter de force",

"job.vm-export.in-progress": "Exportation en cours…",
"job.vm-export.missing-compression": "La compression est requise",
"job.vm-export.missing-vms": "Aucune VM à exporter",
"job.vm-export.not-allowed": "VM non autorisée à être exportée",

"job.vm-migrate.bad-power-state": "La VM doit être allumée",
"job.vm-migrate.in-progress": "Migration en cours…",
"job.vm-migrate.missing-host": "L'hôte de destination est requis",
"job.vm-migrate.missing-vms": "Aucune VM à migrer",

"job.vm-pause.bad-power-state": "La VM doit être allumée",
"job.vm-pause.in-progress": "Mise en pause en cours…",
"job.vm-pause.missing-vms": "Aucune VM à mettre en pause",

"job.vm-reboot.bad-power-state": "La VM doit être allumée",
"job.vm-reboot.in-progress": "Redémarrage en cours…",
"job.vm-reboot.missing-vms": "Aucune VM à redémarrer",

"job.vm-resume.bad-power-state": "La VM doit être en pause ou suspendue",
"job.vm-resume.in-progress": "Reprise en cours…",
"job.vm-resume.missing-vms": "Aucune VM à reprendre",

"job.vm-shutdown.bad-power-state": "La VM doit être allumée",
"job.vm-shutdown.in-progress": "Arrêt en cours…",
"job.vm-shutdown.missing-vms": "Aucune VM à arrêter",

"job.vm-snapshot.in-progress": "Instantané en cours…",
"job.vm-snapshot.missing-vms": "Aucune VM pour l'instantané",

"job.vm-start.bad-power-state": "La VM doit être arrêtée",
"job.vm-start.in-progress": "Démarrage en cours…",
"job.vm-start.missing-vms": "Aucune VM à démarrer",

"job.vm-start-on.bad-power-state": "La VM doit être arrêtée",
"job.vm-start-on.in-progress": "Démarrage en cours…",
"job.vm-start-on.missing-host": "L'hôte de destination est requis",
"job.vm-start-on.missing-vms": "Aucune VM à démarrer",

"job.vm-suspend.bad-power-state": "La VM doit être allumée",
"job.vm-suspend.in-progress": "Suspension en cours…",
"job.vm-suspend.missing-vms": "Aucune VM à suspendre",

"keep-me-logged": "Rester connecté",
"keep-page-open": "Ne pas rafraichir ou quitter cette page avant la fin du déploiement.",
"language": "Langue",
Expand Down
11 changes: 10 additions & 1 deletion @xen-orchestra/lite/src/views/pool/PoolNetworkView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
/>
</UiCard>
<PoolNetworksSidePanel v-if="selectedNetworks" :selected-network="selectedNetworks" :selected-pifs="selectedPIFs" />
<div v-else />
<UiPanel v-else class="panel-container">
<VtsNoSelectionHero type="panel" />
</UiPanel>
</div>
</template>

Expand All @@ -18,6 +20,8 @@ import UiCard from '@/components/ui/UiCard.vue'
import type { XenApiNetwork, XenApiPif } from '@/libs/xen-api/xen-api.types'
import { usePageTitleStore } from '@/stores/page-title.store'
import { useNetworkStore } from '@/stores/xen-api/network.store'
import VtsNoSelectionHero from '@core/components/state-hero/VtsNoSelectionHero.vue'
import UiPanel from '@core/components/ui/panel/UiPanel.vue'
import { ref } from 'vue'
import { useI18n } from 'vue-i18n'
Expand Down Expand Up @@ -79,5 +83,10 @@ const selectNetwork = (item: any) => {
border: solid 0.1rem var(--color-neutral-border);
border-radius: 0.8rem;
}
.panel-container {
width: 40rem;
border-top: none;
}
}
</style>

0 comments on commit 293396c

Please sign in to comment.