mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 17:09:45 +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',
|
field: 'tags',
|
||||||
headerName: this.i18n.t('experiments.table.column.tags_html'),
|
headerName: this.i18n.t('experiments.table.column.tags_html'),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
cellRenderer: TagsRenderer
|
cellRenderer: TagsRenderer,
|
||||||
|
minWidth: 180
|
||||||
});
|
});
|
||||||
columns.push({
|
columns.push({
|
||||||
field: 'comments',
|
field: 'comments',
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<h5>{{ i18n.t("experiments.canvas.modal_manage_tags.project_tags", { project: this.projectName }) }}</h5>
|
<h5>{{ i18n.t("experiments.canvas.modal_manage_tags.project_tags", { project: this.projectName }) }}</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="max-h-80 overflow-y-auto" v-click-outside="finishEditMode">
|
<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
|
<div
|
||||||
class="flex items-center gap-3 px-3 py-2.5 group"
|
class="flex items-center gap-3 px-3 py-2.5 group"
|
||||||
:class="{
|
:class="{
|
||||||
|
@ -184,6 +184,9 @@ export default {
|
||||||
},
|
},
|
||||||
canManage() {
|
canManage() {
|
||||||
return this.params.permissions.manage_tags;
|
return this.params.permissions.manage_tags;
|
||||||
|
},
|
||||||
|
sortedAllTags() {
|
||||||
|
return this.allTags.sort((a, b) => b.assigned - a.assigned);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
Loading…
Reference in a new issue