mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-16 06:23:50 +08:00
feat: use orgnization logo as tour logo and allow to configure whether to enable tour in organization edit page (#3046)
This commit is contained in:
@ -208,6 +208,12 @@ export function setIsTourVisible(visible) {
|
||||
window.dispatchEvent(new Event("storageTourChanged"));
|
||||
}
|
||||
|
||||
export function setTourLogo(tourLogoSrc) {
|
||||
if (tourLogoSrc !== "") {
|
||||
TourObj["home"][0]["cover"] = (<img alt="casdoor.png" src={tourLogoSrc} />);
|
||||
}
|
||||
}
|
||||
|
||||
export function getTourVisible() {
|
||||
return localStorage.getItem("isTourVisible") !== "false";
|
||||
}
|
||||
|
Reference in New Issue
Block a user