mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
feat: Set all resources view as default subview (#4919)
This commit is contained in:
parent
74100d3d5b
commit
bcde07e032
|
@ -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',
|
||||
},
|
||||
];
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue