Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
yet more linting fixes
Dieser Commit ist enthalten in:
Ursprung
203876e927
Commit
a3d59caee8
3 geänderte Dateien mit 9 neuen und 9 gelöschten Zeilen
|
@ -264,22 +264,22 @@ export function subscriptionLevel(type, category, subCategory) {
|
|||
switch (category) {
|
||||
case "actions":
|
||||
if (subscription_levels["business"].actions.includes(type)) {
|
||||
return "business"
|
||||
return "business";
|
||||
} else {
|
||||
if (subscription_levels["standard"].actions.includes(type)) {
|
||||
return "standard"
|
||||
return "standard";
|
||||
} else {
|
||||
return ""
|
||||
return "";
|
||||
}
|
||||
}
|
||||
case "custom_fields":
|
||||
if (subscription_levels["business"].custom_fields[subCategory].includes(type)) {
|
||||
return "business"
|
||||
return "business";
|
||||
} else {
|
||||
if (subscription_levels["standard"].custom_fields[subCategory].includes(type)) {
|
||||
return "standard"
|
||||
return "standard";
|
||||
} else {
|
||||
return ""
|
||||
return "";
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -7,7 +7,7 @@ import { getOwner } from "discourse-common/lib/get-owner";
|
|||
export function cook(text, options) {
|
||||
if (!options) {
|
||||
options = buildOptions({
|
||||
getURL: getURL,
|
||||
getURL,
|
||||
siteSettings: getOwner(this).lookup("site-settings:main"),
|
||||
});
|
||||
}
|
||||
|
|
|
@ -27,12 +27,12 @@ function performSearch(
|
|||
// need to be able to cancel this
|
||||
oldSearch = $.ajax(getUrl("/u/search/users"), {
|
||||
data: {
|
||||
term: term,
|
||||
term,
|
||||
topic_id: topicId,
|
||||
include_groups: includeGroups,
|
||||
include_mentionable_groups: includeMentionableGroups,
|
||||
include_messageable_groups: includeMessageableGroups,
|
||||
group: group,
|
||||
group,
|
||||
topic_allowed_users: allowedUsers,
|
||||
},
|
||||
});
|
||||
|
|
Laden …
In neuem Issue referenzieren