-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 --------- Co-authored-by: Fotis Paraskevopoulos <[email protected]>
- Loading branch information
1 parent
4ea534c
commit 7554942
Showing
12 changed files
with
482 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<div class="flex flex-col text-start"> | ||
<div class="p-5 text-center"> | ||
<Lucide icon="Copy" class="w-16 h-16 mx-auto mt-3 text-primary" /> | ||
<div class="mt-5 text-3xl">Confirm Duplication</div> | ||
<div class="mt-2 text-slate-500"> | ||
Do you want to duplicate the selected application? <br /> | ||
This action will create a new application based on the original. | ||
</div> | ||
</div> | ||
<div class="px-5 pb-8 text-center"> | ||
<Button type="button" variant="outline-secondary" @click="cancelAction" class="w-24 mr-1"> Cancel </Button> | ||
<Button type="button" variant="primary" class="w-24" @click="confirmAction"> Duplicate </Button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import Button from "@/base-components/Button" | ||
import Lucide from "@/base-components/Lucide" | ||
import { useUIStore } from "@/store/modules/ui.ts" | ||
const props = defineProps({ | ||
payload: { | ||
type: Object, | ||
default: () => ({ | ||
itemType: "", | ||
itemName: "", | ||
cancelAction: () => {}, | ||
confirmAction: () => { | ||
console.log("No action performed") | ||
} | ||
}) | ||
} | ||
}) | ||
const uiStore = useUIStore() | ||
const closeModal = () => { | ||
uiStore.setModalWindowState() | ||
} | ||
const cancelAction = () => { | ||
props.payload?.cancelAction() | ||
closeModal() | ||
} | ||
const confirmAction = () => { | ||
props.payload.confirmAction() | ||
closeModal() | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.