mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 13:16:05 +08:00
Add pkg/harvester components + shell portings - 1
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import { Location } from 'vue-router';
|
||||
import ExplorerProjectsNamespaces from '@shell/components/ExplorerProjectsNamespaces.vue';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../../config/harvester';
|
||||
import { MANAGEMENT, NAMESPACE } from '@shell/config/types';
|
||||
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>
|
||||
|
||||
<template><ExplorerProjectsNamespaces v-bind="$attrs" :create-project-location-override="createProjectLocation" :create-namespace-location-override="createNamespaceLocation" /></template>
|
||||
Reference in New Issue
Block a user