Web Interface for Tags #104244

Merged
Sybren A. Stüvel merged 30 commits from Evelinealy/flamenco:tag-interface into main 2023-09-04 13:06:10 +02:00
Showing only changes of commit 0be3797283 - Show all commits

View File

@ -38,11 +38,21 @@
>
<td>{{ tag.name }}</td>
<td>{{ tag.description }}</td>
<!-- Name editing field -->
<td>
<input
type="text"
v-if="isSelected(tag)"
v-model="tag.name"
@blur="updateTagName(tag)"
/>
<span v-else>{{ tag.name }}</span>
</td>
</tr>
</tbody>
</table>
<!-- Show message when no tags found -->
<div v-else class="dl-no-data">
<span>No tags found.</span>
</div>
@ -173,7 +183,9 @@ export default {
return;
}
// Find the index of the selected tag in the tags array
const index = this.tags.findIndex((tag) => tag.id === this.selectedTag.id);
const index = this.tags.findIndex(
(tag) => tag.id === this.selectedTag.id
);
if (index !== -1) {
const api = new WorkerMgtApi(getAPIClient());