forked from intel/AI-Playground
-
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.
26 - added warning if download model is not an LLM
Signed-off-by: julianbollig <[email protected]>
- Loading branch information
1 parent
ef9a0f7
commit f83a079
Showing
7 changed files
with
120 additions
and
27 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
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
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,46 @@ | ||
<template> | ||
<div class="dialog-container z-10"> | ||
<div class="dialog-mask absolute left-0 top-0 w-full h-full bg-black/55 flex justify-center items-center"> | ||
<div class="py-10 px-20 w-500px flex flex-col items-center justify-center bg-gray-600 rounded-3xl gap-6 text-white" | ||
:class="{ 'animate-scale-in': animate }"> | ||
<p v-html= "warningMessage"></p> | ||
<div class="flex justify-center items-center gap-9"> | ||
<button @click="cancelConfirm" class="bg-color-control-bg py-1 px-4 rounded">{{i18nState.COM_CANCEL}}</button> | ||
<button @click="confirmAdd" class="bg-color-control-bg py-1 px-4 rounded">{{i18nState.COM_CONFIRM}}</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
import { useI18N } from '@/assets/js/store/i18n.ts'; | ||
const i18nState = useI18N().state; | ||
const confirmFunction = ref(() => {}) | ||
const warningMessage = ref("") | ||
const animate = ref(false); | ||
const emits = defineEmits<{ | ||
(e: "close"): void | ||
}>(); | ||
onDeactivated(() => { | ||
animate.value = false; | ||
}) | ||
async function confirmAdd() { | ||
confirmFunction.value() | ||
emits("close"); | ||
} | ||
function cancelConfirm() { | ||
emits("close"); | ||
} | ||
defineExpose({warningMessage, confirmFunction}); | ||
</script> | ||
<style scoped> | ||
table { | ||
border-collapse: separate; | ||
border-spacing: 10px; | ||
} | ||
</style> |
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