Fix: Tag Interface Delete Button #104256

Manually merged
Sybren A. Stüvel merged 39 commits from Evelinealy/flamenco:tag-interface into main 2023-11-02 16:13:14 +01:00
Showing only changes of commit 94e1ab4604 - Show all commits

View File

@ -163,15 +163,10 @@ export default {
api
.deleteWorkerTag(this.selectedTag.id)
.then(() => {
const index = this.tags.findIndex(
(tag) => tag.id === this.selectedTag.id
);
if (index !== -1) {
this.tags.splice(index, 1);
}
this.selectedTag = null;
this.tabulator.setData(this.tags);
dr.sybren marked this conversation as resolved Outdated

Not sure if a fixed width is going to work well here, especially when the window gets resized.

Not sure if a fixed width is going to work well here, especially when the window gets resized.
this.fetchTags();
})
.catch((error) => {
const errorMsg = JSON.stringify(error);