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

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

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,