0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 01:10:28 +01:00

yet more linting fixes

Dieser Commit ist enthalten in:
merefield 2021-10-27 15:05:09 +01:00
Ursprung 203876e927
Commit a3d59caee8
3 geänderte Dateien mit 9 neuen und 9 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

@ -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"),
});
}

Datei anzeigen

@ -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,
},
});