@@ -37,11 +37,13 @@
\ No newline at end of file
diff --git a/src/frontend/src/dialogs/LeaveFormDialog.vue b/src/frontend/src/dialogs/LeaveFormDialog.vue
index fa86288d4..26b18089c 100644
--- a/src/frontend/src/dialogs/LeaveFormDialog.vue
+++ b/src/frontend/src/dialogs/LeaveFormDialog.vue
@@ -4,7 +4,9 @@
@emitSubmit="$emit('leaveForm')"
:hideDraftBtn="true"
>
-
Leave {{ type }} Form?
+
+ Leave {{ type }} Form?
+
You are about to leave the {{ type }} form and have unsaved changes.
All changes will be lost. Continue?
diff --git a/src/frontend/src/dialogs/QueueDialog.vue b/src/frontend/src/dialogs/QueueDialog.vue
index 8c565743d..a8736e85c 100644
--- a/src/frontend/src/dialogs/QueueDialog.vue
+++ b/src/frontend/src/dialogs/QueueDialog.vue
@@ -13,128 +13,84 @@
{{editQueue ? 'Edit Queue' : 'Register Queue'}}
-
+
-
-
-
- Queue Name:
-
-
-
-
-
- Group:
-
-
-
-
-
- Description:
-
-
-
-
+
+
+ Queue Name:
+
+
+
+
+ Group:
+
+
+
+
+ Description:
+
+
-
-
-
-
-
-
- {{
- new Intl.DateTimeFormat('en-US', {
- year: '2-digit',
- month: '2-digit',
- day: '2-digit',
- hour: 'numeric',
- minute: 'numeric',
- hour12: true
- }).format(new Date(snapshot.snapshotCreatedOn))
- }}
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/src/frontend/src/router/index.ts b/src/frontend/src/router/index.ts
index b7d16b2bd..7a3b15ff9 100644
--- a/src/frontend/src/router/index.ts
+++ b/src/frontend/src/router/index.ts
@@ -54,7 +54,8 @@ const router = createRouter({
},
{
path: '/experiments/:id',
- component: () => import('../views/CreateExperiment.vue')
+ component: () => import('../views/CreateExperiment.vue'),
+ meta: { type: 'experiments' }
},
{
path: '/groups',
diff --git a/src/frontend/src/stores/LoginStore.ts b/src/frontend/src/stores/LoginStore.ts
index 8e0bcd6f7..42e6ec350 100644
--- a/src/frontend/src/stores/LoginStore.ts
+++ b/src/frontend/src/stores/LoginStore.ts
@@ -44,11 +44,13 @@ export const useLoginStore = defineStore('login', () => {
files: {},
})
+ const showRightDrawer = ref(false)
+ const selectedSnapshot = ref()
// computed()'s are getters
// function()'s are actions
- return { loggedInUser, loggedInGroup, groups, users, savedForms };
+ return { loggedInUser, loggedInGroup, groups, users, savedForms, showRightDrawer, selectedSnapshot };
})
\ No newline at end of file
diff --git a/src/frontend/src/views/CreateExperiment.vue b/src/frontend/src/views/CreateExperiment.vue
index 7a959594c..1bb1c231c 100644
--- a/src/frontend/src/views/CreateExperiment.vue
+++ b/src/frontend/src/views/CreateExperiment.vue
@@ -1,8 +1,25 @@
-
-
+
+
+
Basic Info
@@ -15,6 +32,7 @@
:rules="[requiredRule]"
class="q-mb-sm q-mt-md"
aria-required="true"
+ :disable="history"
>
Name:
@@ -31,6 +49,7 @@
dense
:rules="[requiredRule]"
aria-required="true"
+ :disable="history"
>
Group:
@@ -42,6 +61,7 @@
v-model.trim="experiment.description"
class="q-mb-sm q-mt-sm"
type="textarea"
+ :disable="history"
>
Description:
@@ -51,10 +71,11 @@
-
+
Entrypoint
Entrypoints:
-
+
+
+
+
Entrypoints are not part of Experiment snapshots
+
-
+
@@ -273,7 +307,7 @@
onBeforeRouteLeave((to, from, next) => {
toPath.value = to.path
- if(confirmLeave.value || !valuesChanged.value) {
+ if(confirmLeave.value || !valuesChanged.value || history.value) {
next(true)
} else if(route.params.id === 'new') {
leaveForm()
@@ -303,4 +337,20 @@
router.push(toPath.value)
}
+ const history = computed(() => {
+ return store.showRightDrawer
+ })
+
+ watch(() => store.selectedSnapshot, (newVal) => {
+ if(newVal) {
+ experiment.value = {
+ name: newVal.name,
+ group: newVal.group,
+ description: newVal.description
+ }
+ } else {
+ getExperiment()
+ }
+ })
+
\ No newline at end of file
diff --git a/src/frontend/src/views/CreateJob.vue b/src/frontend/src/views/CreateJob.vue
index e893dca98..a3070b45f 100644
--- a/src/frontend/src/views/CreateJob.vue
+++ b/src/frontend/src/views/CreateJob.vue
@@ -193,7 +193,7 @@
-