projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71349c7
)
Add `@since 6.1` comment
author
Olaf Braun
<info@braun-development.de>
Thu, 7 Mar 2024 15:52:55 +0000
(16:52 +0100)
committer
Olaf Braun
<info@braun-development.de>
Thu, 7 Mar 2024 15:52:55 +0000
(16:52 +0100)
ts/WoltLabSuite/Core/Ui/User/Menu/Data/Provider.ts
patch
|
blob
|
blame
|
history
ts/WoltLabSuite/Core/Ui/User/Menu/Manager.ts
patch
|
blob
|
blame
|
history
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Menu/Manager.js
patch
|
blob
|
blame
|
history
diff --git
a/ts/WoltLabSuite/Core/Ui/User/Menu/Data/Provider.ts
b/ts/WoltLabSuite/Core/Ui/User/Menu/Data/Provider.ts
index 55770705d7f1b688319c1e43350b1ce331f6fe2e..f391c0862af573124ab035b1946e893d8104bd1c 100644
(file)
--- a/
ts/WoltLabSuite/Core/Ui/User/Menu/Data/Provider.ts
+++ b/
ts/WoltLabSuite/Core/Ui/User/Menu/Data/Provider.ts
@@
-60,6
+60,9
@@
export type UserMenuData = {
usernames: string[];
};
+/**
+ * @since 6.1
+ */
export type EventUpdateCounter = {
counter: number;
};
diff --git
a/ts/WoltLabSuite/Core/Ui/User/Menu/Manager.ts
b/ts/WoltLabSuite/Core/Ui/User/Menu/Manager.ts
index 675afa386aa765a61e49504559caf61988872519..9eaa335d274589972b6553f9a59cea59de9cf800 100644
(file)
--- a/
ts/WoltLabSuite/Core/Ui/User/Menu/Manager.ts
+++ b/
ts/WoltLabSuite/Core/Ui/User/Menu/Manager.ts
@@
-99,6
+99,9
@@
export function getUserMenuProviders(): ReadonlySet<UserMenuProvider> {
return providers;
}
+/**
+ * @since 6.1
+ */
export function updateCounter(identifier: string, counter: number) {
Array.from(providers)
.filter((provider) => provider.getIdentifier() === identifier)
diff --git
a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Menu/Manager.js
b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Menu/Manager.js
index 2118a9a24e24a661c5e9cc2cf7fb945ac8c2a606..f407c2a3cd50aa2da371747185d38269c2063cd8 100644
(file)
--- a/
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Menu/Manager.js
+++ b/
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Menu/Manager.js
@@
-79,6
+79,9
@@
define(["require", "exports", "tslib", "../../Alignment", "../../CloseOverlay",
return providers;
}
exports.getUserMenuProviders = getUserMenuProviders;
+ /**
+ * @since 6.1
+ */
function updateCounter(identifier, counter) {
Array.from(providers)
.filter((provider) => provider.getIdentifier() === identifier)