mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
Merge pull request #7943 from rekonder/aj_SCI_11155
Add legacy support for modals [SCI-11155]
This commit is contained in:
commit
920505d59c
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}`"
|
||||
|
@ -73,6 +75,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…
Reference in a new issue