@@ -152,10 +154,13 @@ async function createTask() {
if (!selectorStore.currentService) {
return;
}
- if (!selectorStore.currentInstance) {
+ if (!selectorStore.currentPod) {
return;
}
- ebpfStore.getCreateTaskData(selectorStore.currentService.id);
+ ebpfStore.createNetworkTask({
+ serviceId: selectorStore.currentService.id,
+ serviceInstanceId: selectorStore.currentpod.id,
+ });
}
async function fetchTasks() {
const serviceId =
@@ -221,10 +226,9 @@ async function fetchTasks() {
.profile-t-tool {
padding: 5px 10px;
- font-weight: bold;
- border-right: 1px solid rgba(0, 0, 0, 0.07);
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
background: #f3f4f9;
+ width: 100%;
}
.profile-btn {
@@ -234,4 +238,8 @@ async function fetchTasks() {
font-size: 12px;
float: right;
}
+
+.new-task {
+ float: right;
+}