Skip to content

Commit ea04b92

Browse files
committed
fix codestyle
1 parent 8ba68b2 commit ea04b92

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

files_wcf/js/Hanashi/Change/Author.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Component/Dialog", "Wo
1313
}
1414
}
1515
async #changeAuthorClicked(button) {
16-
const { ok } = await (0, Dialog_1.dialogFactory)()
17-
.usingFormBuilder()
18-
.fromEndpoint(button.dataset.endpoint);
16+
const { ok } = await (0, Dialog_1.dialogFactory)().usingFormBuilder().fromEndpoint(button.dataset.endpoint);
1917
if (ok) {
2018
UiNotification.show(Language.getPhrase("wcf.message.changeAuthor.success"), function () {
2119
window.location.reload();

ts/Hanashi/Change/Author.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ export class ChangeAuthor {
1212
}
1313

1414
async #changeAuthorClicked(button: HTMLButtonElement) {
15-
const { ok } = await dialogFactory()
16-
.usingFormBuilder()
17-
.fromEndpoint(button.dataset.endpoint!);
15+
const { ok } = await dialogFactory().usingFormBuilder().fromEndpoint(button.dataset.endpoint!);
1816
if (ok) {
1917
UiNotification.show(
2018
Language.getPhrase("wcf.message.changeAuthor.success"),

0 commit comments

Comments
 (0)