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
commit 55816acc99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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