Skip to content

Commit 43e2675

Browse files
committed
Minor fixes
1 parent 02d1e06 commit 43e2675

File tree

8 files changed

+8
-12
lines changed

8 files changed

+8
-12
lines changed

ts/WoltLabSuite/Core/Api/Notices/DismissNotice.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* @copyright 2001-2025 WoltLab GmbH
66
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
77
* @since 6.3
8-
* @woltlabExcludeBundle tiny
98
*/
109

1110
import { prepareRequest } from "WoltLabSuite/Core/Ajax/Backend";

ts/WoltLabSuite/Core/Controller/Notice/Dismiss.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* @author Alexander Ebert
55
* @copyright 2001-2019 WoltLab GmbH
66
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
7-
* @woltlabExcludeBundle tiny
87
*/
98

109
import { dismissNotice } from "WoltLabSuite/Core/Api/Notices/DismissNotice";
@@ -26,7 +25,7 @@ export function setup(): void {
2625
* Sends a request to dismiss a notice and removes it afterwards.
2726
*/
2827
async function click(button: HTMLElement): Promise<void> {
29-
await dismissNotice(parseInt(button.dataset.objectId!, 10));
28+
(await dismissNotice(parseInt(button.dataset.objectId!, 10))).unwrap();
3029

3130
button.parentElement!.remove();
3231
}

wcfsetup/install/files/js/WoltLabSuite/Core/Api/Notices/DismissNotice.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Notice/Dismiss.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wcfsetup/install/files/lib/command/notice/DismissNotice.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use wcf\system\WCF;
1010

1111
/**
12-
* Dismisses a notice for the current user.
12+
* Dismisses a notice.
1313
*
1414
* @author Olaf Braun
1515
* @copyright 2001-2025 WoltLab GmbH

wcfsetup/install/files/lib/data/notice/NoticeAction.class.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ public function delete()
7575
* Dismisses a certain notice.
7676
*
7777
* @return int[]
78-
*
7978
* @deprecated 6.3 Use the `DismissNotice` command instead.
8079
*/
8180
public function dismiss()
@@ -95,7 +94,6 @@ public function dismiss()
9594
* Validates the 'dismiss' action.
9695
*
9796
* @return void
98-
*
9997
* @deprecated 6.3
10098
*/
10199
public function validateDismiss()

wcfsetup/install/files/lib/event/notice/NoticeDismissed.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use wcf\event\IPsr14Event;
77

88
/**
9-
* Indicates that a notice has been dismissed by the current user.
9+
* Indicates that a notice has been dismissed.
1010
*
1111
* @author Olaf Braun
1212
* @copyright 2001-2025 WoltLab GmbH
@@ -15,5 +15,7 @@
1515
*/
1616
final class NoticeDismissed implements IPsr14Event
1717
{
18-
public function __construct(public readonly Notice $notice) {}
18+
public function __construct(
19+
public readonly Notice $notice
20+
) {}
1921
}

wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DismissNotice.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use wcf\system\exception\PermissionDeniedException;
1313

1414
/**
15-
* API endpoint to dismiss a notice for the current user.
15+
* Dismisses a notice.
1616
*
1717
* @author Olaf Braun
1818
* @copyright 2001-2025 WoltLab GmbH

0 commit comments

Comments
 (0)