Fix linting errors
parent
52c4402125
commit
f70c3a3701
|
@ -101,7 +101,7 @@
|
|||
href="https://github.com/filebrowser/filebrowser"
|
||||
>File Browser</a
|
||||
>
|
||||
<span> {{ ' ' }} {{ version }}</span>
|
||||
<span> {{ " " }} {{ version }}</span>
|
||||
</span>
|
||||
<span>
|
||||
<a @click="help">{{ $t("sidebar.help") }}</a>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from "vue";
|
||||
import { watch } from "vue";
|
||||
import { ModalsContainer, useModal } from "vue-final-modal";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useLayoutStore } from "@/stores/layout";
|
||||
|
|
|
@ -29,12 +29,11 @@ export const useLayoutStore = defineStore("layout", {
|
|||
toggleShell() {
|
||||
this.showShell = !this.showShell;
|
||||
},
|
||||
setCloseOnPrompt(closeFunction: any, onPrompt: string) {
|
||||
let prompt = this.prompts.find((prompt) => prompt.prompt === onPrompt);
|
||||
setCloseOnPrompt(closeFunction: () => Promise<string>, onPrompt: string) {
|
||||
const prompt = this.prompts.find((prompt) => prompt.prompt === onPrompt);
|
||||
if (prompt) {
|
||||
prompt.close = closeFunction;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
showHover(value: PopupProps | string) {
|
||||
if (typeof value !== "object") {
|
||||
|
|
|
@ -3,7 +3,7 @@ interface PopupProps {
|
|||
confirm?: any;
|
||||
action?: PopupAction;
|
||||
props?: any;
|
||||
close?: any;
|
||||
close?: (() => Promise<string>) | null;
|
||||
}
|
||||
|
||||
type PopupAction = (e: Event) => void;
|
||||
|
|
Loading…
Reference in New Issue