mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Create a simple dropdown for notifications
This commit is contained in:
parent
8475884338
commit
3ceb4373e3
@ -303,6 +303,7 @@ When('open the notification menu and click on the first item', () => {
|
||||
})
|
||||
|
||||
Then('see {int} unread notifications in the top menu', count => {
|
||||
cy.find('.notifications-menu').should('contain', count)
|
||||
})
|
||||
|
||||
Then('I get to the post page of {string}', path => {
|
||||
|
||||
@ -31,6 +31,27 @@
|
||||
/>
|
||||
</no-ssr>
|
||||
<template v-if="isLoggedIn">
|
||||
<no-ssr>
|
||||
<dropdown class="notifications-menu">
|
||||
<template
|
||||
slot="default"
|
||||
slot-scope="{toggleMenu}"
|
||||
>
|
||||
<ds-button
|
||||
primary
|
||||
icon="bell"
|
||||
@click.prevent="toggleMenu"
|
||||
>
|
||||
7
|
||||
</ds-button>
|
||||
</template>
|
||||
<template
|
||||
slot="popover"
|
||||
>
|
||||
<h1> I am a notification </h1>
|
||||
</template>
|
||||
</dropdown>
|
||||
</no-ssr>
|
||||
<no-ssr>
|
||||
<dropdown class="avatar-menu">
|
||||
<template
|
||||
@ -239,6 +260,11 @@ export default {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.notifications-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.avatar-menu-trigger {
|
||||
user-select: none;
|
||||
display: flex;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user