Skip to content

Commit

Permalink
Dev (#38)
Browse files Browse the repository at this point in the history
* Synchronizing code from bitbucket repository

* Removing TomSelect because it is no longer updated

* Metric template remove restriction

* Multiple environment variables fix

* - Setting dark mode by default in the login window
- Providing better view of current build id and build environment for debugging
- Added environment variables to set_env.sh so that they can be set during build

* Application saving and traversing through the ui fixed #8 #11

* Fixing ts errors on Error handling

* Adding build specific information for better debugging

* Added new button to duplicate application

* Bug fixes and improvements

* Added undeploy functionality

* Bug fixes,refactoring resources and added max tries in app polling

* Fix in files in order to run pipeline

* Some Resource Modal ui fixes

---------

Co-authored-by: Fotis Paraskevopoulos <fotis@existanze.com>
  • Loading branch information
vkefalas-exz and fotisp authored Oct 23, 2024
1 parent 9d17665 commit c928032
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gui/src/components/Modal/ResourceEditing.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="flex flex-col text-start">
<slot name="title"></slot>
<ResourceForm :resource-data="resourceData" :rules="rules"/>
<ResourceForm :resource-data="resourceData" :rules="rules" :is-editing="true" />
<Dialog.Footer>
<Button type="button" variant="outline-secondary" @click="closeModal(false)" class="w-20 mr-4"> Cancel </Button>
<Button variant="primary" type="button" class="w-20" @click="editResource"> Save </Button>
Expand Down
7 changes: 5 additions & 2 deletions gui/src/components/Modal/ResourceForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,14 @@ import Button from "@/base-components/Button";
const resourceStore = useResourceStore()
const props = defineProps(['resourceData', 'rules'])
const props = defineProps(['resourceData', 'rules', 'isEditing']);
const resourceData = ref<IResourcePayload>(props.resourceData)
const showPrivateKey = ref(false);
const showPrivateKey = ref(!props.isEditing);
const maskedPrivateKey = computed(() => {
return props.resourceData.sshCredentials.privateKey.replace(/./g, '*');
Expand Down
4 changes: 2 additions & 2 deletions gui/src/components/Modal/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Dialog static scrollable size="xl" :open="Boolean(openedModalWindow)" @close="() => null">
<Dialog.Panel>
<Dialog static scrollable size="xl" :open="Boolean(openedModalWindow)" @close="() => null" >
<Dialog.Panel class="bg-white w-full max-w-3xl p-4 rounded-lg max-h-[90vh] overflow-y-auto">
<Snackbar v-if="uiStore.snackbarMessage" />
<component v-if="openedModalWindow" :is="components[openedModalWindow.name]" :payload="openedModalWindow.payload">
<template #title>
Expand Down

0 comments on commit c928032

Please sign in to comment.