Merge pull request #186 from paviliondev/bugfix_dropdown
FIX: dropdown content assignment should be allowed to be set to "text"
Dieser Commit ist enthalten in:
Commit
035e997e35
4 geänderte Dateien mit 4 neuen und 13 gelöschten Zeilen
|
@ -86,8 +86,8 @@ export default Component.extend(UndoChanges, {
|
||||||
if (this.isDropdown) {
|
if (this.isDropdown) {
|
||||||
options.wizardFieldSelection = "key,value";
|
options.wizardFieldSelection = "key,value";
|
||||||
options.userFieldOptionsSelection = "output";
|
options.userFieldOptionsSelection = "output";
|
||||||
options.textSelection = "key,value,output";
|
options.textSelection = "key,value";
|
||||||
options.inputTypes = "conditional,association,assignment";
|
options.inputTypes = "association,conditional,assignment";
|
||||||
options.pairConnector = "association";
|
options.pairConnector = "association";
|
||||||
options.keyPlaceholder = "admin.wizard.key";
|
options.keyPlaceholder = "admin.wizard.key";
|
||||||
options.valuePlaceholder = "admin.wizard.value";
|
options.valuePlaceholder = "admin.wizard.value";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"result": {
|
"result": {
|
||||||
"line": 92.52
|
"line": 92.87
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,15 +154,6 @@ class CustomWizard::Builder
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if content[:type] == 'assignment' && field_template['type'] === 'dropdown'
|
|
||||||
content[:result] = content[:result].map do |item|
|
|
||||||
{
|
|
||||||
id: item,
|
|
||||||
name: item
|
|
||||||
}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
params[:content] = content[:result]
|
params[:content] = content[:result]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
# name: discourse-custom-wizard
|
# name: discourse-custom-wizard
|
||||||
# about: Create custom wizards
|
# about: Create custom wizards
|
||||||
# version: 1.18.2
|
# version: 1.18.3
|
||||||
# authors: Angus McLeod
|
# authors: Angus McLeod
|
||||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||||
# contact emails: angus@thepavilion.io
|
# contact emails: angus@thepavilion.io
|
||||||
|
|
Laden …
In neuem Issue referenzieren