Browse Source

Restore button_title on ButtonMixin (#656)

In 4.0, the button_title attribute was moved to `BaseLink` to allow for
the refactoring of the Navbar in projects. This broke the `ModalBlock`
and `DownloadBlock` as these only inherit from `ButtonMixin` not
`BaseLink`.
Jeremy Childers 4 months ago
parent
commit
344e030250

+ 5 - 0
coderedcms/blocks/base_blocks.py

@@ -127,6 +127,11 @@ class ButtonMixin(blocks.StructBlock):
         required=False,
         label=_("Button Size"),
     )
+    button_title = blocks.CharBlock(
+        required=False,
+        max_length=255,
+        label=_("Title"),
+    )
 
 
 class CoderedAdvSettings(blocks.StructBlock):

File diff suppressed because it is too large
+ 2 - 2
coderedcms/project_template/basic/website/migrations/0001_initial.py


File diff suppressed because it is too large
+ 2 - 2
coderedcms/project_template/pro/website/migrations/0001_initial.py


Some files were not shown because too many files changed in this diff