⤴ Rebased from master
This commit is contained in:
@@ -3,7 +3,7 @@ export default {
|
||||
computed: {
|
||||
/* Required, hostname (e.g. IP + port) for Glances instance */
|
||||
hostname() {
|
||||
if (!this.options.hostname) this.error('You must specify a \'hostname\' for Glaces');
|
||||
if (!this.options.hostname) this.error('You must specify a \'hostname\' for Glances');
|
||||
return this.options.hostname;
|
||||
},
|
||||
/* Optionally specify the API version, defaults to V 3 */
|
||||
|
||||
@@ -162,7 +162,7 @@ const HomeMixin = {
|
||||
/* If user has a background image, then generate CSS attributes */
|
||||
getBackgroundImage() {
|
||||
if (this.appConfig && this.appConfig.backgroundImg) {
|
||||
return `background: url('${this.appConfig.backgroundImg}');background-size:cover;`;
|
||||
return `background: url('${this.appConfig.backgroundImg}') no-repeat center fixed;background-size:cover;`;
|
||||
}
|
||||
return '';
|
||||
},
|
||||
|
||||
@@ -157,8 +157,8 @@ export default {
|
||||
this.$emit('itemClicked');
|
||||
// Update the most/ last used ledger, for smart-sorting
|
||||
if (!this.appConfig.disableSmartSort) {
|
||||
this.incrementMostUsedCount(this.id);
|
||||
this.incrementLastUsedCount(this.id);
|
||||
this.incrementMostUsedCount(this.item.id);
|
||||
this.incrementLastUsedCount(this.item.id);
|
||||
}
|
||||
},
|
||||
/* Open item, using specified method */
|
||||
|
||||
Reference in New Issue
Block a user