mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-17 04:10:53 +01:00
Fixed: Reload content after data was deleted (#74)
This commit is contained in:
parent
2528390e7b
commit
ce67b1426e
@ -221,6 +221,9 @@ stateManager._handleStorageChanged = function (changes) {
|
|||||||
if (Setting.INTERNAL_STATISTICS in changes) {
|
if (Setting.INTERNAL_STATISTICS in changes) {
|
||||||
stateManager.internalStatistics = changes.internalStatistics.newValue;
|
stateManager.internalStatistics = changes.internalStatistics.newValue;
|
||||||
}
|
}
|
||||||
|
if (Setting.INTERNAL_STATISTICS_DATA in changes) {
|
||||||
|
stats.data = changes.internalStatisticsData.newValue;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
stateManager._clearBadgeText = function (tabIdentifier) {
|
stateManager._clearBadgeText = function (tabIdentifier) {
|
||||||
|
@ -208,10 +208,10 @@ statistics._handlerDateRange = function ({ target }) {
|
|||||||
let type = target.value;
|
let type = target.value;
|
||||||
if (type === 'day' || type === 'week' || type === 'month' || type === 'year') {
|
if (type === 'day' || type === 'week' || type === 'month' || type === 'year') {
|
||||||
statistics._dateUnit = type;
|
statistics._dateUnit = type;
|
||||||
statistics._getStatistics().then(statistics._setDateRange);
|
|
||||||
} else if (type === 'delete') {
|
} else if (type === 'delete') {
|
||||||
statistics._deleteStatistic();
|
statistics._deleteStatistic();
|
||||||
}
|
}
|
||||||
|
statistics._getStatistics().then(statistics._setDateRange);
|
||||||
};
|
};
|
||||||
|
|
||||||
statistics._deleteStatistic = function () {
|
statistics._deleteStatistic = function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user