Use 'area' to create a new note; open note popup when created

This commit is contained in:
Pieter Vander Vennet 2023-02-09 00:30:21 +01:00
parent 1c1df43bf9
commit b4ecd963fc
4 changed files with 10 additions and 19 deletions

View file

@ -52,10 +52,6 @@ export class TextFieldDef {
}
}
protectedisValid(s: string, _: (() => string) | undefined): boolean {
return true
}
public getFeedback(s: string): Translation {
const tr = Translations.t.validation[this.name]
if (tr !== undefined) {
@ -82,6 +78,9 @@ export class TextFieldDef {
}
options["textArea"] = this.name === "text"
if (this.name === "text") {
options["htmlType"] = "area"
}
const self = this
@ -589,7 +588,7 @@ class StringTextField extends TextFieldDef {
class TextTextField extends TextFieldDef {
declare inputmode: "text"
constructor() {
super("text", "A longer piece of text")
super("text", "A longer piece of text. Uses an textArea instead of a textField")
}
}