mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 00:11:22 +08:00
Add legacy support for modals [SCI-11155]
This commit is contained in:
parent
fc506839e1
commit
7ee3f10247
1 changed files with 5 additions and 0 deletions
|
|
@ -11,6 +11,8 @@
|
|||
<a :class="`rounded flex gap-2 items-center py-1.5 px-1.5 xl:px-2.5 hover:text-sn-white hover:bg-sn-blue
|
||||
bg-sn-white color-sn-blue hover:no-underline focus:no-underline ${action.button_class}`"
|
||||
:href="(['link', 'remote-modal']).includes(action.type) ? action.path : '#'"
|
||||
:data-target="action.target"
|
||||
:data-toggle="action.type === 'modal' && 'modal'"
|
||||
:id="action.button_id"
|
||||
:title="action.label"
|
||||
:data-e2e="`e2e-BT-actionToolbar-${action.name}`"
|
||||
|
|
@ -64,6 +66,9 @@ export default {
|
|||
this.$emit('toolbar:action', action);
|
||||
// do nothing, this is handled by legacy code based on the button class
|
||||
break;
|
||||
case 'modal':
|
||||
// do nothihg, boostrap modal handled by data-toggle="modal" and data-target
|
||||
break;
|
||||
case 'link':
|
||||
// do nothing, already handled by href
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue