1
0
Fork 0
Dieser Commit ist enthalten in:
Angus McLeod 2020-04-15 12:34:39 +10:00
Ursprung 147b8a787c
Commit 57a19d4f23
6 geänderte Dateien mit 20 neuen und 8 gelöschten Zeilen

Datei anzeigen

@ -4,5 +4,9 @@ import DiscourseRoute from "discourse/routes/discourse";
export default DiscourseRoute.extend({
model() {
return CustomWizard.all();
},
setupController(controller, model) {
controller.set('wizards', model)
}
});

Datei anzeigen

@ -1,2 +1,2 @@
{{wizard-export wizards=model}}
{{wizard-export wizards=wizards}}
{{wizard-import}}

Datei anzeigen

@ -21,7 +21,6 @@
<div class="wizard-message">
{{d-icon 'question-circle'}}
<span>{{i18n 'admin.wizard.message.help'}}</span>
<a href="https://thepavilion.io/c/knowledge/custom-wizard" target="_blank">
{{i18n 'admin.wizard.message.documentation'}}

Datei anzeigen

@ -19,6 +19,15 @@
.d-icon {
margin-right: 4px;
}
a {
padding-left: 10px;
+ a {
border-left: 1px solid $primary-medium;
margin-left: 10px;
}
}
}
}
@ -35,6 +44,8 @@
h3 {
margin: 0 7px;
}
}
.wizard-logs {

Datei anzeigen

@ -58,7 +58,6 @@ en:
select: "Select a wizard, or create a new one"
edit: "You're editing a wizard"
create: "You're creating a new wizard"
help: "Need help?"
documentation: "Check out the documentation"
contact: "Contact the developer"

Datei anzeigen

@ -13,8 +13,8 @@ class CustomWizard::Log
def self.create(message)
log_id = SecureRandom.hex(12)
PluginStore.set('custom_wizard',
"log_#{log_id}",
PluginStore.set('custom_wizard_log',
log_id.to_s,
{
date: Time.now,
message: message
@ -24,8 +24,7 @@ class CustomWizard::Log
def self.list_query
PluginStoreRow.where("
plugin_name = 'custom_wizard' AND
key LIKE 'log_%' AND
plugin_name = 'custom_wizard_log' AND
(value::json->'date') IS NOT NULL
").order("value::json->>'date' DESC")
end