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
544 changes: 439 additions & 105 deletions openapi/management-open-api.yaml

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/components/ProjectManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<v-tab v-if="showPermissionsTab && userStorage.isAuthenticated" value="permissions">
Permissions
</v-tab>
<v-tab v-if="userStorage.isAuthenticated" value="tasks" @click="loadProjectTasks">
Tasks
</v-tab>
<v-tab v-if="showStatisticsTab" value="statistics" @click="getEndpointStatistcs">
Statistics
</v-tab>
Expand Down Expand Up @@ -120,6 +123,13 @@
:relation-type="permissionType" />
</v-tabs-window-item>

<v-tabs-window-item v-if="userStorage.isAuthenticated" value="tasks">
<ProjectTaskManager
v-if="project['project-id']"
ref="projectTaskManagerRef"
:project-id="project['project-id']" />
</v-tabs-window-item>

<v-tabs-window-item v-if="showStatisticsTab" value="statistics">
<ProjectStatistics v-if="loadedStatistics" :stats="statistics" />
</v-tabs-window-item>
Expand All @@ -144,10 +154,12 @@ import {
} from '../gen/management/types.gen';
import { Header, RelationType } from '../common/interfaces';
import { useRouter } from 'vue-router';
import ProjectTaskManager from './ProjectTaskManager.vue';

const dialog = ref(false);
const tab = ref('overview');
const userStorage = useUserStore();
const projectTaskManagerRef = ref<InstanceType<typeof ProjectTaskManager> | null>(null);

const visual = useVisualStore();
const functions = useFunctions();
Expand Down Expand Up @@ -212,6 +224,13 @@ async function init() {
}
}

async function loadProjectTasks() {
// Refresh tasks when tab is clicked
if (projectTaskManagerRef.value) {
await projectTaskManagerRef.value.refreshTasks();
}
}

async function getEndpointStatistcs() {
// Only load if not already loaded
if (loadedStatistics.value && statistics['called-endpoints'].length > 0) {
Expand Down
Loading