fix menù
This commit is contained in:
@@ -18,9 +18,8 @@ const model = ref([
|
||||
{
|
||||
label: 'Scenarios',
|
||||
items: [
|
||||
{ label: 'Scenarios', icon: 'pi pi-fw pi-id-card', to: '/' },
|
||||
{ label: 'CIA Scenario', icon: 'pi pi-fw pi-id-card', to: '/cia' },
|
||||
{ label: 'Executions', icon: 'pi pi-fw pi-id-card', to: '/executions' }]
|
||||
{ label: 'Available Scenarios', icon: 'pi pi-fw pi-id-card', to: '/' },
|
||||
{ label: 'Executions List', icon: 'pi pi-fw pi-id-card', to: '/executions' }]
|
||||
}, {
|
||||
label: 'Canvas',
|
||||
items: [{ label: 'New Canvas', icon: 'pi pi-fw pi-id-card', to: '/mdcanvas' }]
|
||||
|
||||
@@ -29,13 +29,20 @@ import FileFlowViewer from '@/components/FileFlowViewer.vue';
|
||||
import { ApplicationCodeService } from '@/service/ApplicationCodeService';
|
||||
import Tree from 'primevue/tree';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { UserPrefStore } from '../../stores/UserPrefStore.js';
|
||||
|
||||
const nodes = ref(null)
|
||||
const expandedKeys = ref({});
|
||||
const selectedFile = ref({})
|
||||
const application=ref("ATF-Notifier")
|
||||
|
||||
|
||||
const userPrefStore = UserPrefStore();
|
||||
const selectedApp = userPrefStore.getSelApp;
|
||||
const application=ref(selectedApp.fe_name)
|
||||
|
||||
onMounted(() => {
|
||||
console.log("Mounted")
|
||||
ApplicationCodeService.getApplication('ATF-Notifier').then(response => {
|
||||
ApplicationCodeService.getApplication(selectedApp.internal_name).then(response => {
|
||||
var tmp = []
|
||||
tmp.push(response.data)
|
||||
nodes.value = tmp
|
||||
|
||||
Reference in New Issue
Block a user