Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { alias } from "@ember/object/computed";
import { service } from "@ember/service";
import { dasherize } from "@ember/string";
import ComposerEditor from "discourse/components/composer-editor";
import InsertHyperlink from "discourse/components/modal/insert-hyperlink";
import UpsertHyperlink from "discourse/components/modal/upsert-hyperlink";
import { uploadIcon } from "discourse/lib/uploads";
import discourseComputed, { bind } from "discourse-common/utils/decorators";

Expand Down Expand Up @@ -96,7 +96,7 @@ export default class CustomWizardComposerEditor extends ComposerEditor {
if (this._lastSel) {
linkText = this._lastSel.value;
}
this.modal.show(InsertHyperlink, {
this.modal.show(UpsertHyperlink, {
model: { linkText, toolbarEvent },
});
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -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: 2.13.0
# version: 2.13.1
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Marcos Gutierrez
# url: https://github.com/paviliondev/discourse-custom-wizard
# contact_emails: development@pavilion.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ acceptance("Admin | Custom Wizard Unsubscribed", function (needs) {
".wizard-custom-step .wizard-text-editor .d-editor button.link"
);
assert.ok(
exists(".d-modal.insert-hyperlink-modal"),
exists(".d-modal.upsert-hyperlink-modal"),
"hyperlink modal visible"
);

Expand Down
4 changes: 2 additions & 2 deletions test/javascripts/acceptance/field-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ acceptance("Field | Fields", function (needs) {
"This is a link to "
);
assert.ok(
!exists(".d-modal.insert-hyperlink-modal"),
!exists(".d-modal.upsert-hyperlink-modal"),
"no hyperlink modal by default"
);
await click(
".wizard-field.composer-field .wizard-field-composer .d-editor button.link"
);
assert.ok(
exists(".d-modal.insert-hyperlink-modal"),
exists(".d-modal.upsert-hyperlink-modal"),
"hyperlink modal visible"
);

Expand Down
Loading