Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web-ui/src/resources/elements/entry-form-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="card-body">
<h5 class="card-title">${title}</h5>
<div class="input-group mb-2" repeat.for="entry of entries">
<input type="text" class="form-control" placeholder="${title}..." aria-label="${title}..."
<input type="text" class="form-control" placeholder="${title}..." aria-label="${title}..." focus.bind="focus($index)"
aria-describedby="button-addon2" value.bind="entry" change.delegate="update($index, entry)" maxlength="${maxInputLength}">
<div hidden.bind="singleEntry" class="input-group-append">
<button class="btn btn-outline-danger" type="button" click.delegate="remove($index, $event)"><i
Expand Down
4 changes: 4 additions & 0 deletions web-ui/src/resources/elements/entry-form-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export class EntryFormGroup {
this.appService.sendChangeNotification(this.getTypeChanged(), MessageState.Deleted, null, currValue, message);
}

focus(index: number) {
return index == this.entries.length - 1;
}

getTypeChanged() {
let changedType: TypeChanged;
switch (this.type) {
Expand Down