2
0
Эх сурвалжийг харах

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 5 сар өмнө
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):

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 2 - 2
coderedcms/project_template/basic/website/migrations/0001_initial.py


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 2 - 2
coderedcms/project_template/pro/website/migrations/0001_initial.py


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно