We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb2dc1 commit d884e6cCopy full SHA for d884e6c
1 file changed
public/admin/repquota.html
@@ -48,6 +48,7 @@
48
<h3>Paste repquota Output</h3>
49
<textarea v-model="rawInput" placeholder="Paste results here..."></textarea>
50
<div style="text-align: right;">
51
+ <button @click="getQuota" style="border: none; padding: 12px 24px;">Fetch from Server</button>
52
<button @click="parseQuota" style="background: #3182ce; color: white; border: none; padding: 12px 24px;">Analyze Storage</button>
53
</div>
54
@@ -95,6 +96,12 @@ <h3>Paste repquota Output</h3>
95
96
};
97
},
98
methods: {
99
+ async getQuota() {
100
+ try {
101
+ const resp = await fetch('/status/repquota');
102
+ this.rawInput = await resp.text();
103
+ } catch(e) { alert("Failed to fetch: " + e); }
104
+ },
105
formatSize(kb) {
106
if (kb === 0) return '0 KB';
107
if (kb < 1024) return kb + ' KB';
0 commit comments