mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Started to work on the possibilty to create new entities directly from the part edit page.
This fixes issue #203.
This commit is contained in:
parent
672d55624f
commit
1654010ea3
8 changed files with 142 additions and 84 deletions
|
@ -33,10 +33,13 @@ export default class extends Controller {
|
|||
//Extract empty message from data attribute
|
||||
this._emptyMessage = this.element.getAttribute("data-empty-message") ?? "";
|
||||
|
||||
const allowAdd = this.element.getAttribute("data-allow-add") === "true";
|
||||
|
||||
let settings = {
|
||||
allowEmptyOption: true,
|
||||
selectOnTab: true,
|
||||
maxOptions: null,
|
||||
create: allowAdd,
|
||||
|
||||
searchField: [
|
||||
{field: "text", weight : 2},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue