mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Split up group form into smaller sections.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
import { acceptance, replaceCurrentUser } from "helpers/qunit-helpers";
|
||||
import { displayPollBuilderButton } from "discourse/plugins/poll/helpers/display-poll-builder-button";
|
||||
import { replaceCurrentUser } from "discourse/plugins/poll/helpers/replace-current-user";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
|
||||
acceptance("Poll Builder - polls are disabled", {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
import { acceptance, replaceCurrentUser } from "helpers/qunit-helpers";
|
||||
import { displayPollBuilderButton } from "discourse/plugins/poll/helpers/display-poll-builder-button";
|
||||
import { replaceCurrentUser } from "discourse/plugins/poll/helpers/replace-current-user";
|
||||
import { clearPopupMenuOptionsCallback } from "discourse/controllers/composer";
|
||||
|
||||
acceptance("Poll Builder - polls are enabled", {
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
export function replaceCurrentUser(properties) {
|
||||
const currentUser = Discourse.User.current();
|
||||
currentUser.setProperties(properties);
|
||||
Discourse.User.resetCurrent(currentUser);
|
||||
}
|
||||
Reference in New Issue
Block a user