0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00
Dieser Commit ist enthalten in:
merefield 2021-10-19 13:13:32 +01:00
Ursprung 487ad3c46d
Commit b616adaf71
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -105,7 +105,6 @@ export default Component.extend(UndoChanges, {
return Object.keys(wizardSchema.action.types).reduce((result, type) => { return Object.keys(wizardSchema.action.types).reduce((result, type) => {
let subscriptionLabel = (subscribedActions.includes(type) || unsubscribedActions.includes(type)); let subscriptionLabel = (subscribedActions.includes(type) || unsubscribedActions.includes(type));
let disabled = unsubscribedActions.includes(type); let disabled = unsubscribedActions.includes(type);
console.log(subscriptionLabel, disabled);
result.push({ result.push({
id: type, id: type,
name: I18n.t(`admin.wizard.action.${type}.label`), name: I18n.t(`admin.wizard.action.${type}.label`),

Datei anzeigen

@ -223,7 +223,7 @@ export function actionsAvailableWithAdditionalSubscription(
return []; return [];
case "basic": case "basic":
return action.actionTypesWithSubscription["advanced"]; return action.actionTypesWithSubscription["advanced"];
case "none", "": case "none":
return action.actionTypesWithSubscription["basic"].concat( return action.actionTypesWithSubscription["basic"].concat(
action.actionTypesWithSubscription["advanced"] action.actionTypesWithSubscription["advanced"]
); );
@ -239,7 +239,7 @@ export function actionsAvailableWithCurrentSubscription(
action.actionTypesWithSubscription["basic"]); action.actionTypesWithSubscription["basic"]);
case "basic": case "basic":
return action.actionTypesWithSubscription["basic"]; return action.actionTypesWithSubscription["basic"];
case "none", "": case "none":
return []; return [];
} }
} }