Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-21 17:00:29 +01:00
FIX: categories need to be initialized so that CategorySelector defines the categoryId list
dcd81d56c0
Dieser Commit ist enthalten in:
Ursprung
e3627e684a
Commit
0229043906
3 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
|
@ -5,7 +5,7 @@ import { makeArray } from "discourse-common/lib/helpers";
|
|||
export default CategorySelector.extend({
|
||||
classNames: ["category-selector", "wizard-category-selector"],
|
||||
content: computed(
|
||||
"categories.[]",
|
||||
"categoryIds.[]",
|
||||
"blacklist.[]",
|
||||
"whitelist.[]",
|
||||
function () {
|
||||
|
|
|
@ -3,6 +3,8 @@ import Category from "discourse/models/category";
|
|||
import Component from "@ember/component";
|
||||
|
||||
export default Component.extend({
|
||||
categories: [],
|
||||
|
||||
didInsertElement() {
|
||||
const property = this.field.property || "id";
|
||||
const value = this.field.value;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
# name: discourse-custom-wizard
|
||||
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
|
||||
# version: 2.5.3
|
||||
# version: 2.5.4
|
||||
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
|
||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||
# contact_emails: development@pavilion.tech
|
||||
|
|
Laden …
In neuem Issue referenzieren