mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
refactor: 💡 remove redundant code
This commit is contained in:
parent
f1ecab84d9
commit
c4d2c2b8de
@ -6,11 +6,6 @@ import BasicWidget from "../basic_widget.js";
|
||||
import type { Suggestion } from "../../services/note_autocomplete.js";
|
||||
import type { default as TextTypeWidget } from "../type_widgets/editable_text.js";
|
||||
|
||||
interface NoteAutocompleteElement extends HTMLElement {
|
||||
getSelectedNotePath(): string | null;
|
||||
getSelectedExternalLink(): string | null;
|
||||
}
|
||||
|
||||
const TPL = `
|
||||
<div class="add-link-dialog modal mx-auto" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg" style="max-width: 1000px" role="document">
|
||||
@ -64,7 +59,7 @@ const TPL = `
|
||||
|
||||
export default class AddLinkDialog extends BasicWidget {
|
||||
private $form!: JQuery<HTMLElement>;
|
||||
private $autoComplete!: JQuery<NoteAutocompleteElement>;
|
||||
private $autoComplete!: JQuery<HTMLElement>;
|
||||
private $linkTitle!: JQuery<HTMLElement>;
|
||||
private $addLinkTitleSettings!: JQuery<HTMLElement>;
|
||||
private $addLinkTitleRadios!: JQuery<HTMLElement>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user