popup single RE + project button + exec list filter
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
<Button label="Execute RE Class"
|
<Button label="Execute RE Class"
|
||||||
severity="secondary"
|
severity="secondary"
|
||||||
rounded @click="doREClass"
|
rounded @click="openToastRE"
|
||||||
v-tooltip.left="'Execute reverse engeenering for the class selected'"
|
v-tooltip.left="'Execute reverse engeenering for the class selected'"
|
||||||
:disabled="loadingStore.re_loading">
|
:disabled="loadingStore.re_loading">
|
||||||
|
|
||||||
@@ -109,6 +109,7 @@ import TabList from 'primevue/tablist';
|
|||||||
import TabPanel from 'primevue/tabpanel';
|
import TabPanel from 'primevue/tabpanel';
|
||||||
import TabPanels from 'primevue/tabpanels';
|
import TabPanels from 'primevue/tabpanels';
|
||||||
import Tabs from 'primevue/tabs';
|
import Tabs from 'primevue/tabs';
|
||||||
|
import { useConfirm } from 'primevue/useconfirm';
|
||||||
import { useToast } from 'primevue/usetoast';
|
import { useToast } from 'primevue/usetoast';
|
||||||
import { defineProps, onMounted, reactive, ref, toRefs } from 'vue';
|
import { defineProps, onMounted, reactive, ref, toRefs } from 'vue';
|
||||||
import { HighCode } from 'vue-highlight-code';
|
import { HighCode } from 'vue-highlight-code';
|
||||||
@@ -119,7 +120,6 @@ import { useLayout } from './useLayout';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//66f55e4b2894530b1c154f69
|
//66f55e4b2894530b1c154f69
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
className: {
|
className: {
|
||||||
@@ -127,7 +127,7 @@ className: {
|
|||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
const confirm = useConfirm();
|
||||||
const { className } = toRefs(props);
|
const { className } = toRefs(props);
|
||||||
const classDetails = ref(null);
|
const classDetails = ref(null);
|
||||||
const classLoaded = ref(false);
|
const classLoaded = ref(false);
|
||||||
@@ -162,8 +162,21 @@ onMounted(() => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const openToastRE = () => {
|
||||||
|
confirm.require({
|
||||||
|
message: 'Do you want to proceed for the Reverse Engeeniring for this class?',
|
||||||
|
header: 'RE Confirmation',
|
||||||
|
icon: 'pi pi-exclamation-triangle',
|
||||||
|
accept: () => {
|
||||||
|
doREClass();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const doREClass = () => {
|
const doREClass = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
commonRevRequest.fullClassQualifiedName = className.value;
|
commonRevRequest.fullClassQualifiedName = className.value;
|
||||||
commonRevRequest.applicationName = userPrefStore.getSelApp.internal_name;
|
commonRevRequest.applicationName = userPrefStore.getSelApp.internal_name;
|
||||||
commonRevRequest.applicationProjectName = userPrefStore.selectedProject.internal_name;
|
commonRevRequest.applicationProjectName = userPrefStore.selectedProject.internal_name;
|
||||||
@@ -209,7 +222,7 @@ const doREClass = () => {
|
|||||||
|
|
||||||
axios.get('/java-re-module/getProgressRevSingleClass/'+processId).then(response => {
|
axios.get('/java-re-module/getProgressRevSingleClass/'+processId).then(response => {
|
||||||
|
|
||||||
//console.log("Polling response : ", response);
|
console.log("Polling response : ", response);
|
||||||
|
|
||||||
if(response.data.status === "DONE"){
|
if(response.data.status === "DONE"){
|
||||||
console.log("status done")
|
console.log("status done")
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ const isOutsideClicked = (event) => {
|
|||||||
</div>
|
</div>
|
||||||
<div class="layout-mask"></div>
|
<div class="layout-mask"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<ConfirmDialog />
|
||||||
<Toast />
|
<Toast />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<span v-if="user">
|
<span v-if="user">
|
||||||
{{ user.name + " " + user.surname }}
|
{{ user.name + " " + user.surname }}
|
||||||
</span>
|
</span>
|
||||||
<button @click="redirectProject()" class="p-button p-button-outlined">Projects</button>
|
<!-- <button @click="redirectProject()" class="p-button p-button-outlined">Projects</button> -->
|
||||||
<button @click="auth.logout()" class="p-button p-button-danger p-button-outlined">Logout</button>
|
<button @click="auth.logout()" class="p-button p-button-danger p-button-outlined">Logout</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ const props = defineProps(['page']);
|
|||||||
const userPrefStore = UserPrefStore();
|
const userPrefStore = UserPrefStore();
|
||||||
const scenario_store = ScenarioStore();
|
const scenario_store = ScenarioStore();
|
||||||
const loadingStore = LoadingStore()
|
const loadingStore = LoadingStore()
|
||||||
|
|
||||||
|
|
||||||
const selectedApp = ref(userPrefStore.getSelApp);
|
const selectedApp = ref(userPrefStore.getSelApp);
|
||||||
|
|
||||||
const { onMenuToggle, toggleDarkMode, isDarkTheme } = useLayout();
|
const { onMenuToggle, toggleDarkMode, isDarkTheme } = useLayout();
|
||||||
@@ -40,6 +38,10 @@ async function updateApplication() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function redirectProject() {
|
||||||
|
router.push('/projects'); // Specifica il percorso per la pagina "Projects"
|
||||||
|
}
|
||||||
|
|
||||||
function appUpdated() {
|
function appUpdated() {
|
||||||
selectedApp.value = userPrefStore.getSelApp;
|
selectedApp.value = userPrefStore.getSelApp;
|
||||||
}
|
}
|
||||||
@@ -105,9 +107,10 @@ watch(() => userPrefStore.getSelApp, appUpdated, { immediate: true });
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="topbar-project">
|
<div class="topbar-project">
|
||||||
<span v-if="userPrefStore.user.selectedProject">
|
<button @click="redirectProject()" class="p-button p-button-outlined" v-tooltip="'Click to change the project'">{{ userPrefStore.user.selectedProject.fe_name }}</button>
|
||||||
|
<!-- <span v-if="userPrefStore.user.selectedProject">
|
||||||
<small>PROJECT:</small> {{ userPrefStore.user.selectedProject.fe_name }}
|
<small>PROJECT:</small> {{ userPrefStore.user.selectedProject.fe_name }}
|
||||||
</span>
|
</span> -->
|
||||||
</div>
|
</div>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
v-model="selectedApp"
|
v-model="selectedApp"
|
||||||
@@ -115,7 +118,6 @@ watch(() => userPrefStore.getSelApp, appUpdated, { immediate: true });
|
|||||||
optionLabel="fe_name"
|
optionLabel="fe_name"
|
||||||
placeholder="Select an Application"
|
placeholder="Select an Application"
|
||||||
class="dropdown-list menu-list"
|
class="dropdown-list menu-list"
|
||||||
|
|
||||||
@change="updateApplication()"
|
@change="updateApplication()"
|
||||||
:disabled="isDropdownDisabled"
|
:disabled="isDropdownDisabled"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user