Skip to content

Commit

Permalink
feat: Set all resources view as default subview (#4919)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav authored Dec 14, 2022
1 parent 74100d3 commit bcde07e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ export default Vue.extend({
computed: {
menuItems(): IMenuItem[] {
return [
{
id: 'owner',
icon: 'user',
label: this.myResourcesLabel,
position: 'top',
},
{
id: 'all',
icon: 'globe-americas',
label: this.allResourcesLabel,
position: 'top',
},
{
id: 'owner',
icon: 'user',
label: this.myResourcesLabel,
position: 'top',
},
];
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default mixins(
data() {
return {
loading: true,
isOwnerSubview: true,
isOwnerSubview: false,
sortBy: 'lastUpdated',
hasFilters: false,
resettingFilters: false,
Expand Down Expand Up @@ -374,11 +374,6 @@ export default mixins(
sortBy() {
this.sendSortingTelemetry();
},
loading(value) {
if (!value && this.subviewResources.length === 0 && this.shouldSwitchToAllSubview) {
this.isOwnerSubview = false;
}
},
},
});
</script>
Expand Down

0 comments on commit bcde07e

Please sign in to comment.