Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
Update logs
Dieser Commit ist enthalten in:
Ursprung
57a19d4f23
Commit
949b28cecb
3 geänderte Dateien mit 19 neuen und 10 gelöschten Zeilen
|
@ -26,9 +26,9 @@
|
||||||
{{i18n 'admin.wizard.message.documentation'}}
|
{{i18n 'admin.wizard.message.documentation'}}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="mailto:help@thepavilion.io" target="_blank">
|
{{!--<a href="mailto:help@thepavilion.io" target="_blank">
|
||||||
{{i18n 'admin.wizard.message.contact'}}
|
{{i18n 'admin.wizard.message.contact'}}
|
||||||
</a>
|
</a>--}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -20,13 +20,10 @@
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a + a {
|
||||||
padding-left: 10px;
|
border-left: 1px solid $primary-medium;
|
||||||
|
padding-left: 5px;
|
||||||
+ a {
|
margin-left: 5px;
|
||||||
border-left: 1px solid $primary-medium;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -281,7 +281,19 @@ class CustomWizard::Wizard
|
||||||
|
|
||||||
def self.list(user=nil)
|
def self.list(user=nil)
|
||||||
PluginStoreRow.where(plugin_name: 'custom_wizard').order(:id)
|
PluginStoreRow.where(plugin_name: 'custom_wizard').order(:id)
|
||||||
.map { |record| self.new(JSON.parse(record.value), user) }
|
.reduce([]) do |result, record|
|
||||||
|
attrs = JSON.parse(record.value)
|
||||||
|
|
||||||
|
if attrs.present? &&
|
||||||
|
attrs.is_a?(Hash) &&
|
||||||
|
attrs['id'].present? &&
|
||||||
|
attrs['name'].present?
|
||||||
|
|
||||||
|
result.push(self.new(attrs, user))
|
||||||
|
end
|
||||||
|
|
||||||
|
result
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.save(wizard)
|
def self.save(wizard)
|
||||||
|
|
Laden …
In neuem Issue referenzieren