Lint fixes

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:20 +01:00
parent 19b11aac2c
commit 4626d56acd
214 changed files with 3162 additions and 1298 deletions
@@ -7,7 +7,7 @@ import { HCI } from '@pkg/harvester/types';
export default {
emits: ['update:value', 'remove'],
components: { Select },
props: {
@@ -82,13 +82,13 @@ export default {
guestClusterOptions() {
const clusters = this.$store.getters['management/all'](CAPI.RANCHER_CLUSTER);
const configs = this.$store.getters['management/all'](HCI.HARVESTER_CONFIG);
const selectedClusters = this.rows.map(row => row?.guestCluster);
const filteredNamespaces = this.filteredNamespaces.map(n => n.id);
const selectedClusters = this.rows.map((row) => row?.guestCluster);
const filteredNamespaces = this.filteredNamespaces.map((n) => n.id);
const out = clusters.filter((c) => {
const machinePools = c.spec?.rkeConfig?.machinePools || [];
const machineConfigName = machinePools[0]?.machineConfigRef?.name;
const config = configs.find(c => c.id === `fleet-default/${ machineConfigName }`);
const config = configs.find((c) => c.id === `fleet-default/${ machineConfigName }`);
if (config) {
const vmNamespace = config?.vmNamespace;
@@ -120,7 +120,7 @@ export default {
projectOptions() {
const projects = this.$store.getters['management/all'](MANAGEMENT.PROJECT);
const out = projects.filter(p => p.metadata.namespace === this.currentCluster.id).map((project) => {
const out = projects.filter((p) => p.metadata.namespace === this.currentCluster.id).map((project) => {
return {
label: project.nameDisplay,
value: project.id,
@@ -219,8 +219,15 @@ export default {
@update:value="update"
/>
</div>
<div v-if="showRemove" class="remove">
<button type="button" class="btn role-link" @click="remove(idx)">
<div
v-if="showRemove"
class="remove"
>
<button
type="button"
class="btn role-link"
@click="remove(idx)"
>
<t k="generic.remove" />
</button>
</div>