I think I'm passing???!!!???
This commit is contained in:
@@ -6,7 +6,8 @@ $info: #5d0149;
|
||||
$warning: #fbcf33;
|
||||
$danger: #ea0606;
|
||||
$light: #e9ecef;
|
||||
$dark: #111927;
|
||||
// $dark: #111927;
|
||||
$dark: #44132d;
|
||||
$grey: #cbcbcb;
|
||||
|
||||
$font-sans-serif: Open Sans;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<div class="d-flex align-items-end">
|
||||
|
||||
<div class="btn-group me-5" role="group">
|
||||
<div v-show="account.id" class="btn-group me-5" role="group">
|
||||
<button id="addToVaultGroup" class="btn btn-outline-primary dropdown-toggle" data-bs-toggle="dropdown"
|
||||
aria-expanded="false">Add to Vault</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="addToVaultGroup">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
<div></div>
|
||||
<button v-if="account.id == vault.creatorId" @click="removeFromVault(keep.id)" class="btn btn-outline-secondary">Remove from Vault</button>
|
||||
|
||||
<i v-show="account.id == keep.creatorId" @click="deleteKeep()" class="mdi mdi-delete-outline text-secondary" title="Delete"></i>
|
||||
|
||||
@@ -36,7 +36,9 @@ export default {
|
||||
keeps: computed(() => AppState.keeps),
|
||||
activeKeep: computed(() => AppState.activeKeep),
|
||||
viewKeep(keep) {
|
||||
AppState.activeKeep = keep;
|
||||
// AppState.activeKeep = keep;
|
||||
// make API call to trigger view counter
|
||||
keepsService.getById(keep.id)
|
||||
Modal.getOrCreateInstance(document.getElementById("keepModal")).show();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -82,7 +82,9 @@ export default {
|
||||
|
||||
async viewKeep(keep) {
|
||||
keep.creator = AppState.activeProfile;
|
||||
AppState.activeKeep = keep;
|
||||
// AppState.activeKeep = keep
|
||||
// make API call to trigger view counter
|
||||
keepsService.getById(keep.id)
|
||||
Modal.getOrCreateInstance(document.getElementById("keepModal")).show();
|
||||
},
|
||||
|
||||
|
||||
@@ -53,7 +53,9 @@ export default {
|
||||
account: computed(() => AppState.account),
|
||||
|
||||
viewKeep(keep) {
|
||||
AppState.activeKeep = keep
|
||||
// AppState.activeKeep = keep
|
||||
// make API call to trigger view counter
|
||||
keepsService.getById(keep.id)
|
||||
Modal.getOrCreateInstance(document.getElementById('keepModal')).show()
|
||||
},
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class KeepsService {
|
||||
async getById(id) {
|
||||
try {
|
||||
const res = await api.get('api/keeps/' + id)
|
||||
AppState.keeps = res.data
|
||||
AppState.activeKeep = res.data
|
||||
} catch (error) {
|
||||
logger.error(error)
|
||||
Pop.error(error)
|
||||
|
||||
Reference in New Issue
Block a user