Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
FIX: Ensure no access skip works for guests
Dieser Commit ist enthalten in:
Ursprung
b05ed5093e
Commit
78a9c97e43
2 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen
|
@ -2,6 +2,7 @@ import CustomWizard from "../models/custom-wizard";
|
|||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
import Component from "@ember/component";
|
||||
import { dasherize } from "@ember/string";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
|
||||
export default Component.extend({
|
||||
classNameBindings: [":wizard-no-access", "reasonClass"],
|
||||
|
@ -18,7 +19,11 @@ export default Component.extend({
|
|||
|
||||
actions: {
|
||||
skip() {
|
||||
if (this.currentUser) {
|
||||
CustomWizard.skip(this.get("wizardId"));
|
||||
} else {
|
||||
window.location = getURL("/");
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
# name: discourse-custom-wizard
|
||||
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
|
||||
# version: 1.22.7
|
||||
# version: 1.22.8
|
||||
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George
|
||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||
# contact_emails: development@pavilion.tech
|
||||
|
|
Laden …
In neuem Issue referenzieren