mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-24 06:36:37 +00:00
added client id everywhere
This commit is contained in:
parent
674ce50c5f
commit
b9ee0f2f2c
66
web/src/components/OptionsPopup.vue
Normal file
66
web/src/components/OptionsPopup.vue
Normal file
@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<div v-if="showPopup" class="popup-overlay">
|
||||
<div class="popup">
|
||||
<div class="popup-content">
|
||||
<button
|
||||
v-for="(option, index) in options"
|
||||
:key="index"
|
||||
@click="selectOption(index)"
|
||||
>
|
||||
{{ option }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showPopup: false,
|
||||
options: [],
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
show(options) {
|
||||
this.options = options;
|
||||
this.showPopup = true;
|
||||
},
|
||||
selectOption(index) {
|
||||
this.$emit('option-selected', index);
|
||||
this.showPopup = false;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.popup-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.popup {
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.popup-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
button {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user