Clear history is now disabled when there aren't any histories
This commit is contained in:
@@ -126,6 +126,7 @@
|
|||||||
updateOnLocalStorage('history', this.history);
|
updateOnLocalStorage('history', this.history);
|
||||||
},
|
},
|
||||||
enableHistoryClearing() {
|
enableHistoryClearing() {
|
||||||
|
if (!this.history || !this.history.length) return;
|
||||||
this.isClearingHistory = true;
|
this.isClearingHistory = true;
|
||||||
},
|
},
|
||||||
disableHistoryClearing() {
|
disableHistoryClearing() {
|
||||||
|
|||||||
Reference in New Issue
Block a user