Skip to content

Commit

Permalink
Merge pull request rancher#10682 from torchiaf/harvester-fix-warning-…
Browse files Browse the repository at this point in the history
…messages

Fix warning messages in Harvester embedded view
  • Loading branch information
torchiaf authored Mar 25, 2024
2 parents 4503cda + 06392e5 commit e422c21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions shell/components/formatter/ImagePercentageBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ export default {
}];
},
state() {
return this.row.stateDisplay;
},
completed() {
return Number.parseFloat(this.value) === 100 && !this.failed;
},
Expand Down
6 changes: 5 additions & 1 deletion shell/initialize/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ export default {
window.$globalApp = this;
Object.defineProperty(window, '$nuxt', {
get() {
console.warn('window.$nuxt is deprecated. It would be best to stop using globalState all together. For an alternative you can use window.$globalApp.'); // eslint-disable-line no-console
const isHarvester = this.$globalApp?.$store.getters['currentCluster']?.isHarvester;

if (!isHarvester) {
console.warn('window.$nuxt is deprecated. It would be best to stop using globalState all together. For an alternative you can use window.$globalApp.'); // eslint-disable-line no-console
}

return window.$globalApp;
}
Expand Down

0 comments on commit e422c21

Please sign in to comment.