Fixed 'Add to favorites' in alert dialog, improved alerts list layout.

This commit is contained in:
DebaucheryLibrarian 2024-09-02 01:22:09 +02:00
parent 8bbb2107f5
commit f0cf35f634
3 changed files with 10 additions and 10 deletions

View File

@ -108,9 +108,10 @@
<div class="alert-meta">
<div class="alert-triggers">
<Icon
v-if="alert.notify"
v-tooltip="alert.notify ? 'Notify in traxxx' : undefined"
icon="bell2"
:class="{ trigger: alert.notify }"
class="trigger"
/>
<Icon
@ -121,10 +122,10 @@
/>
<Icon
v-else
v-else-if="alert.stashes.length > 0"
v-tooltip="alert.stashes.length > 0 ? 'Add to Favorites' : undefined"
icon="heart7"
:class="{ trigger: alert.stashes.length > 0 }"
class="trigger"
/>
<!--
@ -334,11 +335,12 @@ async function removeAlert(alert) {
@media(--small-20) {
.alert {
flex-direction: column;
padding-right: 0;
}
.alert-meta {
padding: .5rem 0 .75rem 0;
justify-content: flex-end;
padding: .5rem 0 .5rem 0;
justify-content: space-between;
}
}
</style>

View File

@ -335,7 +335,7 @@
v-if="stashes.length === 0"
type="button"
class="button favorites"
@click="selectStash(user.primaryStash)"
@click="selectStash(assets.primaryStash)"
><Icon icon="heart7" />Add to favorites</button>
</li>
@ -384,7 +384,7 @@ import getPath from '#/src/get-path.js';
import Dialog from '#/components/dialog/dialog.vue';
import Checkbox from '#/components/form/checkbox.vue';
const { user, assets } = inject('pageContext');
const { assets } = inject('pageContext');
const emit = defineEmits(['close']);
@ -418,8 +418,6 @@ const email = ref(false);
const stashes = ref([]);
async function createAlert() {
console.log('creating alert');
await post('/alerts', {
all: fieldsAnd.value,
allActors: actorAnd.value,

2
static

@ -1 +1 @@
Subproject commit f3a2f48e3d93ced9c71c82126058b0e28d1b7727
Subproject commit 5e1b2190f0d580321a310c1c1fc95ede8f33473b