0
0
Fork 1
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:
Angus McLeod 2023-12-08 17:23:01 +01:00
Ursprung e3627e684a
Commit 0229043906
3 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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 () {

Datei anzeigen

@ -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;

Datei anzeigen

@ -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