Fixed 'Add to favorites' in alert dialog, improved alerts list layout.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user