Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
args: --manifest-path ./src-tauri/Cargo.toml

build-debug:
if: github.ref != 'refs/heads/main'
if: ${{ github.event.label.name == 'testbuild' }}
needs: test
strategy:
fail-fast: false
Expand Down Expand Up @@ -74,6 +74,7 @@ jobs:
retention-days: 5

build:
if: ${{ github.event.label.name == 'testbuild' }}
needs: test
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 23 additions & 3 deletions src/layouts/default/Default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,20 @@
<v-btn v-else>Not logged in</v-btn>
<v-spacer></v-spacer>
<v-btn>Engine: Docker</v-btn>
<v-btn v-if="appStore.connection.connected">Connected to {{ appStore.connection.clusterName }}</v-btn>
<v-btn v-else>Not connected</v-btn>
<v-menu v-if="true">
<template v-slot:activator="{ props }">
<v-btn v-if="appStore.connection.connected" v-bind="props">Connected to {{ appStore.connection.clusterName }}</v-btn>
<v-btn v-else>Not connected</v-btn>
</template>
<v-list bg-color="secondary">
<v-list-item @click="clusterDisconnect">
<v-list-item-title>Disconnect</v-list-item-title>
</v-list-item>
<v-list-item @click="copyKubeconfig">
<v-list-item-title>Copy Kubeconfig</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</v-bottom-navigation>
</v-app>
</template>
Expand All @@ -70,10 +82,10 @@
import { Store } from "tauri-plugin-store-api";
import { useAppStore } from '@/store/app';
import { useRoute, useRouter } from 'vue-router';
import { disconnectCluster } from "@/beibootctl";

const store = new Store(".settings.dat");
const route = useRoute();
const router = useRouter();
const appStore = useAppStore();

store.get("user").then((res) => console.log(res.value))
Expand All @@ -96,5 +108,13 @@ import { useRoute, useRouter } from 'vue-router';
const appStore = useAppStore();
appStore.logout();
}
const clusterDisconnect = () => {
const appStore = useAppStore();
disconnectCluster(appStore.connection.clusterName);
}
const copyKubeconfig = () => {
const appStore = useAppStore();
navigator.clipboard.writeText(appStore.connection.kubeconfigPath);
}

</script>
3 changes: 3 additions & 0 deletions src/views/ClusterCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ const createCluster = () => {
ClustersService.clusterCreateClustersPost(clusterReq).then((res) => {
console.log("creation success ", +res);
router.push("/clusters");
})
.catch((err) => {
console.log("creation failed ", +err);
});
};

Expand Down