build: refresh release artifacts after new brand logo and custom button audience
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -106159,17 +106159,22 @@ var require_public_slider_controller = __commonJS({
|
||||
const value = await this.misc.getConst("mobile_main_slider");
|
||||
return Array.isArray(value) ? value : [];
|
||||
}
|
||||
/** Custom button on the profile dashboard (ثابتها → دکمه سفارشی). */
|
||||
/**
|
||||
* Custom button on the profile dashboard (ثابتها → دکمه سفارشی).
|
||||
* `audience`: 'all' = signed out too, 'loggedIn' = only after login. Rows
|
||||
* saved before the field existed were shown to everyone, so they read 'all'.
|
||||
*/
|
||||
async getCustomButton() {
|
||||
const value = await this.misc.getConst("custom_button");
|
||||
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
||||
return { enabled: false, title: "", link: "" };
|
||||
return { enabled: false, title: "", link: "", audience: "all" };
|
||||
}
|
||||
const row = value;
|
||||
return {
|
||||
enabled: Boolean(row.enabled),
|
||||
title: String(row.title ?? ""),
|
||||
link: String(row.link ?? "")
|
||||
link: String(row.link ?? ""),
|
||||
audience: row.audience === "loggedIn" ? "loggedIn" : "all"
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user