Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/modals/DefaultModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<DialogPanel
class="appbg2 appfg2 rounded-lg px-6 pt-5 pb-5 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 max-w-md w-full" :style="`${dialogPanelCss}`"
>
<small class="closeButton oi oi-x" @click="$emit('close')"></small>
<small v-if="showCloseButton==='true'" class="closeButton oi oi-x" @click="$emit('close')"></small>
<div class="min-h-full flex flex-col justify-center">
<b v-if="title!=null">{{title}}</b>
<slot></slot>
Expand All @@ -41,7 +41,8 @@
const emit = defineEmits(["close"]);
const props = defineProps<{
title: {type: String, default: ''},
dialogPanelCss: {type: String, default: ''}
dialogPanelCss: {type: String, default: ''},
showCloseButton: {type: String, default: 'true'}
}>();
var closed = false;
function close() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/ImageViewModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<DefaultModal dialogPanelCss='max-width:820px;width:auto;'>
<DefaultModal dialogPanelCss='max-width:820px;width:auto;' showCloseButton='false'>
<div class="w-full text-gray-400 text-sm" style="margin-top:-18px;">
<div class="float-right flex gap-x-1" style="margin-right:-15px;">
<button class="btn1" @click="copyToClipboard(src)" title="copy url to clipboard"><span class="oi oi-clipboard"></span></button>
Expand Down