mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
feat: Set all resources view as default subview (#4919)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user