Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
Serialiser and css tweaks
Dieser Commit ist enthalten in:
Ursprung
b45d26c143
Commit
ce29654f0f
2 geänderte Dateien mit 2 neuen und 12 gelöschten Zeilen
|
@ -19,7 +19,7 @@
|
|||
}
|
||||
|
||||
.image-container {
|
||||
margin: 30px 0;
|
||||
margin: 50px 0;
|
||||
padding: 0 40px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
|
|
@ -71,9 +71,7 @@ end
|
|||
end
|
||||
|
||||
def include_completed?
|
||||
object.completed? &&
|
||||
(!object.respond_to?(:multiple_submissions) || !object.multiple_submissions) &&
|
||||
!scope.current_user.admin?
|
||||
object.completed? && (!object.respond_to?(:multiple_submissions) || !object.multiple_submissions)
|
||||
end
|
||||
|
||||
def include_start?
|
||||
|
@ -91,14 +89,6 @@ end
|
|||
def include_required?
|
||||
object.respond_to?(:required)
|
||||
end
|
||||
|
||||
def prompt_completion
|
||||
object.prompt_completion
|
||||
end
|
||||
|
||||
def include_prompt_completion?
|
||||
object.respond_to?(:prompt_completion)
|
||||
end
|
||||
end
|
||||
|
||||
::WizardStepSerializer.class_eval do
|
||||
|
|
Laden …
In neuem Issue referenzieren