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

move current user determination to api & remove redundant line

Dieser Commit ist enthalten in:
merefield 2023-07-13 16:04:31 +01:00
Ursprung 5aefa9c544
Commit f94df66613

Datei anzeigen

@ -21,7 +21,7 @@ export default {
withPluginApi("0.8.36", (api) => {
api.onAppEvent("page:changed", (data) => {
const currentUser = container.lookup("service:current-user");
const currentUser = api.getCurrentUser();
if (currentUser) {
const redirectToWizard = currentUser.redirect_to_wizard;
@ -30,7 +30,6 @@ export default {
.concat(["loading"]);
if (
redirectToWizard &&
data.currentRouteName !== "customWizardStep" &&
!excludedPaths.find((p) => {
return data.currentRouteName.indexOf(p) > -1;
})