Skip to content

Commit b94ea3f

Browse files
committed
wRemove button for no
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent d7fde28 commit b94ea3f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

webui/main.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ function sendFieldUpdate(recordFormat, originalFieldName, newFieldInfo) {
982982
}
983983

984984
/**
985-
* Used to create panels for editable key/value lists
985+
* Used to create panels for editable key/value lists.
986986
* @param {string} id
987987
* @param {Keyword[]} keywords
988988
* @param {(keywords: Keyword[]) => void} [onUpdate]
@@ -1013,13 +1013,12 @@ function createKeywordPanel(id, keywords, onUpdate) {
10131013
const createDeleteButtonCell = (onClick) => {
10141014
const cell = document.createElement(`vscode-table-cell`);
10151015

1016-
const button = document.createElement(`vscode-button`);
1017-
button.setAttribute(`icon`, `trash`);
1018-
button.setAttribute(`secondary`, `true`);
1019-
cell.appendChild(button);
1020-
1016+
const button = document.createElement(`vscode-icon`);
1017+
button.setAttribute(`name`, `trash`);
10211018
button.onclick = onClick;
10221019

1020+
cell.appendChild(button);
1021+
10231022
return cell;
10241023
};
10251024

@@ -1108,7 +1107,8 @@ function createKeywordPanel(id, keywords, onUpdate) {
11081107
}
11091108

11101109
/**
1111-
* Used to create a panel for editable properties
1110+
* Used to create a panel for editable properties.
1111+
* Properties with the `id` property are editable.
11121112
* @param {string} id
11131113
* @param {Property[]} properties
11141114
* @param {(newProps: NewProperties) => {}} onUpdate

0 commit comments

Comments
 (0)