0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-10 17:52:47 +00:00

Update snippetbar.jsx with filter for editor/view specific menus

Add logic to filter available snippet menus based on the view/editor that is open ("text" vs "style") for both Legacy and v3.
This commit is contained in:
Gazook89
2021-08-12 06:59:55 -05:00
parent 3d9f8ea142
commit 3545bdc586
2 changed files with 23 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ module.exports = [
{
groupName : 'Editor',
icon : 'fas fa-pencil-alt',
view : 'text',
snippets : [
{
name : 'Column Break',
@@ -114,6 +115,7 @@ module.exports = [
{
groupName : 'PHB',
icon : 'fas fa-book',
view : 'text',
snippets : [
{
name : 'Spell',
@@ -181,6 +183,7 @@ module.exports = [
{
groupName : 'Tables',
icon : 'fas fa-table',
view : 'text',
snippets : [
{
name : 'Class Table',
@@ -265,6 +268,7 @@ module.exports = [
{
groupName : 'Print',
icon : 'fas fa-print',
view : 'style',
snippets : [
{
name : 'A4 PageSize',