Skip to content

Commit f331ad2

Browse files
authored
Merge pull request #303 from communiteq/main
Fix for useless refactor in core 8445eec
2 parents e86e32d + 9a1606b commit f331ad2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

assets/javascripts/discourse/components/custom-wizard-composer-editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { alias } from "@ember/object/computed";
33
import { service } from "@ember/service";
44
import { dasherize } from "@ember/string";
55
import ComposerEditor from "discourse/components/composer-editor";
6-
import InsertHyperlink from "discourse/components/modal/insert-hyperlink";
6+
import UpsertHyperlink from "discourse/components/modal/upsert-hyperlink";
77
import { uploadIcon } from "discourse/lib/uploads";
88
import discourseComputed, { bind } from "discourse-common/utils/decorators";
99

@@ -96,7 +96,7 @@ export default class CustomWizardComposerEditor extends ComposerEditor {
9696
if (this._lastSel) {
9797
linkText = this._lastSel.value;
9898
}
99-
this.modal.show(InsertHyperlink, {
99+
this.modal.show(UpsertHyperlink, {
100100
model: { linkText, toolbarEvent },
101101
});
102102
}

plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
# name: discourse-custom-wizard
33
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
4-
# version: 2.13.0
4+
# version: 2.13.1
55
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Marcos Gutierrez
66
# url: https://github.com/paviliondev/discourse-custom-wizard
77
# contact_emails: development@pavilion.tech

test/javascripts/acceptance/admin-wizards-unsubscribed-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ acceptance("Admin | Custom Wizard Unsubscribed", function (needs) {
250250
".wizard-custom-step .wizard-text-editor .d-editor button.link"
251251
);
252252
assert.ok(
253-
exists(".d-modal.insert-hyperlink-modal"),
253+
exists(".d-modal.upsert-hyperlink-modal"),
254254
"hyperlink modal visible"
255255
);
256256

test/javascripts/acceptance/field-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ acceptance("Field | Fields", function (needs) {
9191
"This is a link to "
9292
);
9393
assert.ok(
94-
!exists(".d-modal.insert-hyperlink-modal"),
94+
!exists(".d-modal.upsert-hyperlink-modal"),
9595
"no hyperlink modal by default"
9696
);
9797
await click(
9898
".wizard-field.composer-field .wizard-field-composer .d-editor button.link"
9999
);
100100
assert.ok(
101-
exists(".d-modal.insert-hyperlink-modal"),
101+
exists(".d-modal.upsert-hyperlink-modal"),
102102
"hyperlink modal visible"
103103
);
104104

0 commit comments

Comments
 (0)