Fix linting errors

pull/3537/head
Oleg Lobanov 2025-01-21 00:02:49 +01:00
parent 52c4402125
commit f70c3a3701
No known key found for this signature in database
4 changed files with 5 additions and 6 deletions

View File

@ -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>

View File

@ -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";

View File

@ -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") {

View File

@ -3,7 +3,7 @@ interface PopupProps {
confirm?: any;
action?: PopupAction;
props?: any;
close?: any;
close?: (() => Promise<string>) | null;
}
type PopupAction = (e: Event) => void;