Compare commits

..

No commits in common. "a4a05232dba20ce22deff9d2737ea4fe93ded061" and "478a2c4b48603975b1145346eb90304408d3b8c8" have entirely different histories.

6 changed files with 14 additions and 22 deletions

View File

@ -32,10 +32,6 @@
</template> </template>
<script> <script>
function mounted() {
this.events.emit('blur');
}
export default { export default {
props: { props: {
title: { title: {
@ -44,7 +40,6 @@ export default {
}, },
}, },
emits: ['close'], emits: ['close'],
mounted,
}; };
</script> </script>

View File

@ -100,7 +100,6 @@
:notifications="notifications" :notifications="notifications"
:unseen-count="unseenNotificationsCount" :unseen-count="unseenNotificationsCount"
@check="fetchNotifications" @check="fetchNotifications"
@add-alert="showAddAlert = true"
/> />
</template> </template>
</Tooltip> </Tooltip>
@ -145,19 +144,12 @@
<Search class="search-full" /> <Search class="search-full" />
</div> </div>
<AddAlert
v-if="showAddAlert"
@close="showAddAlert = false"
>Alert</AddAlert>
</header> </header>
</template> </template>
<script> <script>
import Menu from './menu.vue'; import Menu from './menu.vue';
import Notifications from './notifications.vue'; import Notifications from './notifications.vue';
import AddAlert from '../alerts/add.vue';
import Search from './search.vue'; import Search from './search.vue';
import logo from '../../img/logo.svg'; import logo from '../../img/logo.svg';
@ -175,7 +167,6 @@ async function fetchNotifications() {
export default { export default {
components: { components: {
AddAlert,
Menu, Menu,
Notifications, Notifications,
Search, Search,
@ -186,7 +177,6 @@ export default {
logo, logo,
searching: false, searching: false,
showFilters: false, showFilters: false,
showAddAlert: false,
notifications: [], notifications: [],
unseenNotificationsCount: 0, unseenNotificationsCount: 0,
}; };

View File

@ -14,11 +14,16 @@
<Icon <Icon
v-tooltip="'Add alert'" v-tooltip="'Add alert'"
icon="plus3" icon="plus3"
@click="$emit('addAlert')" @click="showAddAlert = true"
/> />
</div> </div>
</div> </div>
<AddAlert
v-if="showAddAlert"
@close="showAddAlert = false"
>Alert</AddAlert>
<div class="notifications-body"> <div class="notifications-body">
<div <div
v-if="notifications.length === 0" v-if="notifications.length === 0"
@ -118,6 +123,8 @@
</template> </template>
<script> <script>
import AddAlert from '../alerts/add.vue';
async function checkNotifications() { async function checkNotifications() {
await this.$store.dispatch('checkNotifications'); await this.$store.dispatch('checkNotifications');
@ -135,6 +142,9 @@ async function checkNotification(notificationId, blur) {
} }
export default { export default {
components: {
AddAlert,
},
props: { props: {
notifications: { notifications: {
type: Array, type: Array,
@ -150,7 +160,6 @@ export default {
showAddAlert: false, showAddAlert: false,
}; };
}, },
emits: ['addAlert'],
methods: { methods: {
checkNotifications, checkNotifications,
checkNotification, checkNotification,

View File

@ -221,8 +221,6 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-sizing: border-box;
padding: 1rem;
background: var(--shadow-touch); background: var(--shadow-touch);
.icon { .icon {

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.193.2", "version": "1.193.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "1.193.2", "version": "1.193.1",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@casl/ability": "^5.2.2", "@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.193.2", "version": "1.193.1",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {