Always show developer mode attributes on admin billing page (#3850)
* Always show developer mode attributes on admin billing page * Unprovision servers by default when refunding
This commit is contained in:
parent
03192c1dfd
commit
17ca209862
@ -153,10 +153,7 @@
|
|||||||
{{ dayjs(charge.due).format("MMMM D, YYYY [at] h:mma") }}
|
{{ dayjs(charge.due).format("MMMM D, YYYY [at] h:mma") }}
|
||||||
<span class="text-secondary">({{ formatRelativeTime(charge.due) }}) </span>
|
<span class="text-secondary">({{ formatRelativeTime(charge.due) }}) </span>
|
||||||
</span>
|
</span>
|
||||||
<div
|
<div class="flex w-full items-center gap-1 text-xs text-secondary">
|
||||||
v-if="flags.developerMode"
|
|
||||||
class="flex w-full items-center gap-1 text-xs text-secondary"
|
|
||||||
>
|
|
||||||
{{ charge.status }}
|
{{ charge.status }}
|
||||||
⋅
|
⋅
|
||||||
{{ charge.type }}
|
{{ charge.type }}
|
||||||
@ -219,7 +216,6 @@ import dayjs from "dayjs";
|
|||||||
import { products } from "~/generated/state.json";
|
import { products } from "~/generated/state.json";
|
||||||
import ModrinthServersIcon from "~/components/ui/servers/ModrinthServersIcon.vue";
|
import ModrinthServersIcon from "~/components/ui/servers/ModrinthServersIcon.vue";
|
||||||
|
|
||||||
const flags = useFeatureFlags();
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const data = useNuxtApp();
|
const data = useNuxtApp();
|
||||||
const vintl = useVIntl();
|
const vintl = useVIntl();
|
||||||
@ -289,13 +285,13 @@ const selectedCharge = ref(null);
|
|||||||
const refundType = ref("full");
|
const refundType = ref("full");
|
||||||
const refundTypes = ref(["full", "partial", "none"]);
|
const refundTypes = ref(["full", "partial", "none"]);
|
||||||
const refundAmount = ref(0);
|
const refundAmount = ref(0);
|
||||||
const unprovision = ref(false);
|
const unprovision = ref(true);
|
||||||
|
|
||||||
function showRefundModal(charge) {
|
function showRefundModal(charge) {
|
||||||
selectedCharge.value = charge;
|
selectedCharge.value = charge;
|
||||||
refundType.value = "full";
|
refundType.value = "full";
|
||||||
refundAmount.value = 0;
|
refundAmount.value = 0;
|
||||||
unprovision.value = false;
|
unprovision.value = true;
|
||||||
refundModal.value.show();
|
refundModal.value.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user