mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 00:49:07 +08:00
Small issues in tags modal [SCI-10514]
This commit is contained in:
parent
0746519fcb
commit
28dd646d86
2 changed files with 6 additions and 2 deletions
|
@ -166,7 +166,8 @@ export default {
|
|||
field: 'tags',
|
||||
headerName: this.i18n.t('experiments.table.column.tags_html'),
|
||||
sortable: true,
|
||||
cellRenderer: TagsRenderer
|
||||
cellRenderer: TagsRenderer,
|
||||
minWidth: 180
|
||||
});
|
||||
columns.push({
|
||||
field: 'comments',
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<h5>{{ i18n.t("experiments.canvas.modal_manage_tags.project_tags", { project: this.projectName }) }}</h5>
|
||||
</div>
|
||||
<div class="max-h-80 overflow-y-auto" v-click-outside="finishEditMode">
|
||||
<template v-for="tag in allTags" :key="tag.id">
|
||||
<template v-for="tag in sortedAllTags" :key="tag.id">
|
||||
<div
|
||||
class="flex items-center gap-3 px-3 py-2.5 group"
|
||||
:class="{
|
||||
|
@ -184,6 +184,9 @@ export default {
|
|||
},
|
||||
canManage() {
|
||||
return this.params.permissions.manage_tags;
|
||||
},
|
||||
sortedAllTags() {
|
||||
return this.allTags.sort((a, b) => b.assigned - a.assigned);
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
Loading…
Reference in a new issue