mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 11:41:19 +08:00
Result action menu [SCI-8954]
This commit is contained in:
parent
3e5a3d24dd
commit
63ed250f4a
2 changed files with 26 additions and 0 deletions
|
@ -62,6 +62,22 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div ref="actionsDropdownButton" class="dropdown">
|
||||
<button class="btn btn-light icon-btn dropdown-toggle insert-button" type="button" :id="'resultOptionsMenu_' + result.id" data-toggle="dropdown" data-display="static" aria-haspopup="true" aria-expanded="true">
|
||||
<i class="sn-icon sn-icon-more-hori"></i>
|
||||
</button>
|
||||
<ul ref="actionsDropdown" class="dropdown-menu dropdown-menu-right insert-element-dropdown" :aria-labelledby="'resultOptionsMenu_' + result.id">
|
||||
<li class="action" @click="openReorderModal">
|
||||
{{ i18n.t('my_modules.results.actions.rearrange') }}
|
||||
</li>
|
||||
<li class="action" @click="duplicateResult">
|
||||
{{ i18n.t('my_modules.results.actions.duplicate') }}
|
||||
</li>
|
||||
<li class="action" @click="archiveResult">
|
||||
{{ i18n.t('my_modules.results.actions.archive') }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<ReorderableItemsModal v-if="reordering"
|
||||
|
@ -277,6 +293,12 @@
|
|||
})
|
||||
});
|
||||
},
|
||||
archiveResult() {
|
||||
|
||||
},
|
||||
duplicateResult() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1269,6 +1269,10 @@ en:
|
|||
new_comment: "New comment"
|
||||
edit_title: "Edit result"
|
||||
archive_title: "Archive result"
|
||||
actions:
|
||||
rearrange: "Rearrange"
|
||||
archive: "Archive"
|
||||
duplicate: "Duplicate"
|
||||
archive_results:
|
||||
preview: "View"
|
||||
activities:
|
||||
|
|
Loading…
Reference in a new issue