feat: allow selection of total vs confirmed vs unconfirmed give amounts

This commit is contained in:
2023-03-22 21:56:02 -06:00
parent cdef139468
commit 3177d0f4b3
3 changed files with 122 additions and 34 deletions

View File

@@ -194,7 +194,7 @@
href=""
class="text-center text-md text-white px-1.5 py-2 rounded-md mb-6"
v-bind:class="showContactGivesClassNames()"
@click="toggleShowContactAmounts"
@click="toggleShowContactAmounts()"
>
{{ showContactGives ? "Showing" : "Hiding" }}
amounts given with contacts (Click to
@@ -359,13 +359,6 @@ export default class AccountViewView extends Vue {
}
}
public showContactGivesClassNames() {
return {
"bg-slate-900": !this.showContactGives,
"bg-green-600": this.showContactGives,
};
}
public async exportDatabase() {
try {
const blob = await db.export({ prettyJson: true });
@@ -422,6 +415,13 @@ export default class AccountViewView extends Vue {
}
}
public showContactGivesClassNames() {
return {
"bg-slate-900": !this.showContactGives,
"bg-green-600": this.showContactGives,
};
}
alertMessage = "";
alertTitle = "";
isAlertVisible = false;