feat: Set all resources view as default subview (#4919)

This commit is contained in:
Alex Grozav 2022-12-14 10:29:35 +02:00 committed by GitHub
parent 74100d3d5b
commit bcde07e032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 12 deletions

View file

@ -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',
},
];
},
},

View file

@ -204,7 +204,7 @@ export default mixins(
data() {
return {
loading: true,
isOwnerSubview: true,
isOwnerSubview: false,
sortBy: 'lastUpdated',
hasFilters: false,
resettingFilters: false,
@ -374,11 +374,6 @@ export default mixins(
sortBy() {
this.sendSortingTelemetry();
},
loading(value) {
if (!value && this.subviewResources.length === 0 && this.shouldSwitchToAllSubview) {
this.isOwnerSubview = false;
}
},
},
});
</script>