Merge pull request #127 from guastallaigor/change-to-disable-click-clear-history

Clear history is now disabled when there aren't any histories
This commit is contained in:
Liyas Thomas
2019-09-02 05:01:44 +05:30
committed by GitHub

View File

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