mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +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: {
|
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user