mirror of https://github.com/Lissy93/dashy.git
✨ Adds option for user to disable smart-sort
This commit is contained in:
parent
11f5f8c9df
commit
591b03420b
|
@ -53,6 +53,7 @@ import { localStorageKeys } from '@/utils/defaults';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Item',
|
name: 'Item',
|
||||||
|
inject: ['config'],
|
||||||
props: {
|
props: {
|
||||||
id: String, // The unique ID of a tile (e.g. 001)
|
id: String, // The unique ID of a tile (e.g. 001)
|
||||||
title: String, // The main text of tile, required
|
title: String, // The main text of tile, required
|
||||||
|
@ -108,8 +109,10 @@ export default {
|
||||||
this.$emit('itemClicked');
|
this.$emit('itemClicked');
|
||||||
}
|
}
|
||||||
// Update the most/ last used ledger, for smart-sorting
|
// Update the most/ last used ledger, for smart-sorting
|
||||||
this.incrementMostUsedCount(this.id);
|
if (!this.config.appConfig.disableSmartSort) {
|
||||||
this.incrementLastUsedCount(this.id);
|
this.incrementMostUsedCount(this.id);
|
||||||
|
this.incrementLastUsedCount(this.id);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/* Open custom context menu, and set position */
|
/* Open custom context menu, and set position */
|
||||||
openContextMenu(e) {
|
openContextMenu(e) {
|
||||||
|
|
Loading…
Reference in New Issue