Fix: Tag Interface Delete Button #104256
@ -164,7 +164,6 @@ export default {
|
||||
sorter: "string",
|
||||
editor: "input",
|
||||
vertAlign: "center",
|
||||
width: 400,
|
||||
|
||||
formatter(cell) {
|
||||
const cellValue = cell.getData().description;
|
||||
@ -245,16 +244,15 @@ export default {
|
||||
},
|
||||
|
||||
deleteTag(tag) {
|
||||
if (!tag) {
|
||||
return;
|
||||
}
|
||||
|
||||
const api = new WorkerMgtApi(getAPIClient());
|
||||
api
|
||||
.deleteWorkerTag(tag.id)
|
||||
.then(() => {
|
||||
this.tags = this.tags.filter((t) => t.id !== tag.id);
|
||||
this.tabulator.setData(this.tags);
|
||||
this.tabulator.getRows().forEach((row) => {
|
||||
if (row.getData().id === tag.id) {
|
||||
row.delete();
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
const errorMsg = JSON.stringify(error);
|
||||
|
Loading…
Reference in New Issue
Block a user