0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +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) { switch (category) {
case "actions": case "actions":
if (subscription_levels["business"].actions.includes(type)) { if (subscription_levels["business"].actions.includes(type)) {
return "business" return "business";
} else { } else {
if (subscription_levels["standard"].actions.includes(type)) { if (subscription_levels["standard"].actions.includes(type)) {
return "standard" return "standard";
} else { } else {
return "" return "";
} }
} }
case "custom_fields": case "custom_fields":
if (subscription_levels["business"].custom_fields[subCategory].includes(type)) { if (subscription_levels["business"].custom_fields[subCategory].includes(type)) {
return "business" return "business";
} else { } else {
if (subscription_levels["standard"].custom_fields[subCategory].includes(type)) { if (subscription_levels["standard"].custom_fields[subCategory].includes(type)) {
return "standard" return "standard";
} else { } else {
return "" return "";
} }
} }
default: default:

Datei anzeigen

@ -7,7 +7,7 @@ import { getOwner } from "discourse-common/lib/get-owner";
export function cook(text, options) { export function cook(text, options) {
if (!options) { if (!options) {
options = buildOptions({ options = buildOptions({
getURL: getURL, getURL,
siteSettings: getOwner(this).lookup("site-settings:main"), siteSettings: getOwner(this).lookup("site-settings:main"),
}); });
} }

Datei anzeigen

@ -27,12 +27,12 @@ function performSearch(
// need to be able to cancel this // need to be able to cancel this
oldSearch = $.ajax(getUrl("/u/search/users"), { oldSearch = $.ajax(getUrl("/u/search/users"), {
data: { data: {
term: term, term,
topic_id: topicId, topic_id: topicId,
include_groups: includeGroups, include_groups: includeGroups,
include_mentionable_groups: includeMentionableGroups, include_mentionable_groups: includeMentionableGroups,
include_messageable_groups: includeMessageableGroups, include_messageable_groups: includeMessageableGroups,
group: group, group,
topic_allowed_users: allowedUsers, topic_allowed_users: allowedUsers,
}, },
}); });