TF-2064 Add QuotasBannerWidget

(cherry picked from commit ce85ba3d7e647a8a93a54144a840905a8c479fb0)
This commit is contained in:
dab246
2023-08-04 21:26:15 +07:00
committed by Dat Vu
parent 9a2e838d03
commit 3aa2b91a89
6 changed files with 303 additions and 81 deletions
+36 -37
View File
@@ -2547,29 +2547,6 @@ class AppLocalizations {
);
}
String textQuotasUsed(double used, double softLimit) {
return Intl.message(
'$used GB of $softLimit GB Used',
name: 'textQuotasUsed',
args: [used, softLimit],
);
}
String textQuotasRunningOutOfStorageTitle(double progress) {
return Intl.message(
'You are running out of storage ($progress%).',
name: 'textQuotasRunningOutOfStorageTitle',
args: [progress],
);
}
String get textQuotasRunningOutOfStorageContent {
return Intl.message(
"Soon you won't be able to email in Team Mail. Please clean your storage or upgrade your storage to get full features in Team Mail.",
name: 'textQuotasRunningOutOfStorageContent',
);
}
String get textQuotasOutOfStorage {
return Intl.message(
'Out of storage',
@@ -2577,20 +2554,6 @@ class AppLocalizations {
);
}
String get textQuotasRunOutOfStorageTitle {
return Intl.message(
'You have run out of storage space',
name: 'textQuotasRunOutOfStorageTitle',
);
}
String get textQuotasRunOutOfStorageContent {
return Intl.message(
"Now you temporarily can't send or get an email. Please free up or upgrade your storage to get the full features of Team Mail.",
name: 'textQuotasRunOutOfStorageContent',
);
}
String get quickCreatingRule {
return Intl.message(
'Create a rule with this email',
@@ -3234,4 +3197,40 @@ class AppLocalizations {
'Delete all spam emails now',
name: 'deleteAllSpamEmailsNow');
}
String quotaStateLabel(String used, String limit) {
return Intl.message(
'$used of $limit Used',
name: 'quotaStateLabel',
args: [used, limit],
);
}
String get quotaErrorBannerTitle {
return Intl.message(
'You have run out of storage space',
name: 'quotaErrorBannerTitle'
);
}
String get quotaWarningBannerTitle {
return Intl.message(
'You are running out of storage (99%).',
name: 'quotaWarningBannerTitle'
);
}
String get quotaWarningBannerMessage {
return Intl.message(
'Soon you won\'t be able to email in Tmail. Please clean your storage or upgrade your storage to get full features in Tmail.',
name: 'quotaWarningBannerMessage'
);
}
String get quotaErrorBannerMessage {
return Intl.message(
'Soon you won\'t be able to email in Tmail. Please clean your storage or upgrade your storage to get full features in Tmail.',
name: 'quotaErrorBannerMessage'
);
}
}