-
Notifications
You must be signed in to change notification settings - Fork 63
Add object type as data attr to notification #1500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
It is/was not removed, it should just be there in both ways now. |
@nickvergessen Prior to NC 25, the notification entry(div) used to look like: <div data-v-7df7d6b8="" data-v-082f9351="" data-id="9181" data-timestamp="1680675908000" class="notification" notification_id="9181" object_type="previewgenerator" object_id="5.2.2">After NC 25, it looks like: <li data-v-7fd45550="" data-v-03956494="" data-id="672" data-timestamp="1680636752000" class="notification">
I am building an app with a simple occ command and a notifier to send notifications to all users via occ command(similar to the Since the .notification[object_type="my-notifications-app"] {
background-color: red;
}But since it is gone in NC 25, my styles no longer apply :( |
|
Ah, yeah so that was never intended to be part of the HTML body (since it's invalid). Exactly why the change was done. |
|
Let's also add Can you run: and also commit the resulting js/ changes? Then our CI will also be happy. |
@nickvergessen Done |
Signed-off-by: Akhil <akhil@e.email>
|
/backport to stable26 |
|
/backport to stable25 |
|
The backport to stable25 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable25
git pull origin/stable25
# Create the new backport branch
git checkout -b fix/foo-stable25
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable25More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
object-typethat used to be there in NC 24 notifications markup to apply custom styles to notifications from certain appsdata-object-typeattribute