Clear history is now disabled when there aren't any histories

This commit is contained in:
Igor Guastalla de Lima
2019-09-01 11:19:23 -03:00
parent 4d4a55cd3a
commit 8226d0a1ae

View File

@@ -126,6 +126,7 @@
updateOnLocalStorage('history', this.history);
},
enableHistoryClearing() {
if (!this.history || !this.history.length) return;
this.isClearingHistory = true;
},
disableHistoryClearing() {