mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 05:06:05 +08:00
Vue3 migration - vue-migration.js launch + shell compatibility fixes
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -1,36 +1,6 @@
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
// eslint-disable-next-line import/named
|
||||
import { Location } from 'vue-router';
|
||||
import ExplorerProjectsNamespaces from '@shell/components/ExplorerProjectsNamespaces.vue';
|
||||
import { MANAGEMENT, NAMESPACE } from '@shell/config/types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../../config/harvester';
|
||||
interface Data {
|
||||
createProjectLocation: Location,
|
||||
createNamespaceLocation: Location
|
||||
}
|
||||
export default Vue.extend<Data, any, any, any>({
|
||||
components: { ExplorerProjectsNamespaces },
|
||||
data() {
|
||||
return {
|
||||
createProjectLocation: {
|
||||
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
|
||||
params: {
|
||||
product: HARVESTER_PRODUCT,
|
||||
cluster: this.$store.getters['currentCluster']?.id,
|
||||
resource: MANAGEMENT.PROJECT
|
||||
},
|
||||
},
|
||||
createNamespaceLocation: {
|
||||
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
|
||||
params: {
|
||||
product: HARVESTER_PRODUCT,
|
||||
resource: NAMESPACE
|
||||
},
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
<script>
|
||||
import ExplorerProjectsNamespaces from '@shell/components/ExplorerProjectsNamespaces';
|
||||
export default { components: { ExplorerProjectsNamespaces } };
|
||||
</script>
|
||||
|
||||
<template><ExplorerProjectsNamespaces v-bind="$attrs" :create-project-location-override="createProjectLocation" :create-namespace-location-override="createNamespaceLocation" /></template>
|
||||
<template><ExplorerProjectsNamespaces v-bind="$attrs" /></template>
|
||||
Reference in New Issue
Block a user