mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-23 05:35:07 +02:00
♻️ Remove MiscHelpers direct dependency
This commit is contained in:
parent
3ac0585c5c
commit
168fe94391
@ -44,7 +44,6 @@
|
|||||||
import WidgetMixin from '@/mixins/WidgetMixin';
|
import WidgetMixin from '@/mixins/WidgetMixin';
|
||||||
import NextcloudMixin from '@/mixins/NextcloudMixin';
|
import NextcloudMixin from '@/mixins/NextcloudMixin';
|
||||||
import PercentageChart from '@/components/Charts/PercentageChart';
|
import PercentageChart from '@/components/Charts/PercentageChart';
|
||||||
import { convertBytes } from '@/utils/MiscHelpers';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NextcloudUser widget - Displays branding and user information
|
* NextcloudUser widget - Displays branding and user information
|
||||||
@ -110,9 +109,9 @@ export default {
|
|||||||
quotaTooltip() {
|
quotaTooltip() {
|
||||||
const quotaEnabled = this.user.quota.quota > 0;
|
const quotaEnabled = this.user.quota.quota > 0;
|
||||||
const content = `${this.tt('quota-enabled', { not: quotaEnabled ? '' : 'not ' })}`
|
const content = `${this.tt('quota-enabled', { not: quotaEnabled ? '' : 'not ' })}`
|
||||||
+ `<br><br>${convertBytes(this.user.quota.used)} ${this.tt('used')}<br>`
|
+ `<br><br>${this.convertBytes(this.user.quota.used)} ${this.tt('used')}<br>`
|
||||||
+ `${convertBytes(this.user.quota.free)} ${this.tt('free')}<br>`
|
+ `${this.convertBytes(this.user.quota.free)} ${this.tt('free')}<br>`
|
||||||
+ `${convertBytes(this.user.quota.total)} ${this.tt('total')}`;
|
+ `${this.convertBytes(this.user.quota.total)} ${this.tt('total')}`;
|
||||||
return {
|
return {
|
||||||
content, html: true, trigger: 'hover focus', delay: 250, classes: 'nc-tooltip',
|
content, html: true, trigger: 'hover focus', delay: 250, classes: 'nc-tooltip',
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user