mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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: {
|
computed: {
|
||||||
menuItems(): IMenuItem[] {
|
menuItems(): IMenuItem[] {
|
||||||
return [
|
return [
|
||||||
{
|
|
||||||
id: 'owner',
|
|
||||||
icon: 'user',
|
|
||||||
label: this.myResourcesLabel,
|
|
||||||
position: 'top',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'all',
|
id: 'all',
|
||||||
icon: 'globe-americas',
|
icon: 'globe-americas',
|
||||||
label: this.allResourcesLabel,
|
label: this.allResourcesLabel,
|
||||||
position: 'top',
|
position: 'top',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'owner',
|
||||||
|
icon: 'user',
|
||||||
|
label: this.myResourcesLabel,
|
||||||
|
position: 'top',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -204,7 +204,7 @@ export default mixins(
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
isOwnerSubview: true,
|
isOwnerSubview: false,
|
||||||
sortBy: 'lastUpdated',
|
sortBy: 'lastUpdated',
|
||||||
hasFilters: false,
|
hasFilters: false,
|
||||||
resettingFilters: false,
|
resettingFilters: false,
|
||||||
|
@ -374,11 +374,6 @@ export default mixins(
|
||||||
sortBy() {
|
sortBy() {
|
||||||
this.sendSortingTelemetry();
|
this.sendSortingTelemetry();
|
||||||
},
|
},
|
||||||
loading(value) {
|
|
||||||
if (!value && this.subviewResources.length === 0 && this.shouldSwitchToAllSubview) {
|
|
||||||
this.isOwnerSubview = false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue