Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +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({
|
export default CategorySelector.extend({
|
||||||
classNames: ["category-selector", "wizard-category-selector"],
|
classNames: ["category-selector", "wizard-category-selector"],
|
||||||
content: computed(
|
content: computed(
|
||||||
"categories.[]",
|
"categoryIds.[]",
|
||||||
"blacklist.[]",
|
"blacklist.[]",
|
||||||
"whitelist.[]",
|
"whitelist.[]",
|
||||||
function () {
|
function () {
|
||||||
|
|
|
@ -3,6 +3,8 @@ import Category from "discourse/models/category";
|
||||||
import Component from "@ember/component";
|
import Component from "@ember/component";
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
|
categories: [],
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
const property = this.field.property || "id";
|
const property = this.field.property || "id";
|
||||||
const value = this.field.value;
|
const value = this.field.value;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
# name: discourse-custom-wizard
|
# name: discourse-custom-wizard
|
||||||
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
|
# 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
|
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
|
||||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||||
# contact_emails: development@pavilion.tech
|
# contact_emails: development@pavilion.tech
|
||||||
|
|
Laden …
In neuem Issue referenzieren