Skip to content

Commit e90bc1c

Browse files
authored
Merge pull request #17503 from a110605/hide_create_ns_btn
feat: hide create namespace button based on project schema permissions
2 parents 44c4789 + 5579ac6 commit e90bc1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shell/components/ExplorerProjectsNamespaces.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export default {
295295
return this.$store.getters['i18n/t']('resourceTable.groupLabel.notInAProject');
296296
},
297297
showCreateNsButton() {
298-
return this.groupPreference !== 'namespace';
298+
return this.groupPreference !== 'namespace' && this.isNamespaceCreatable;
299299
},
300300
projectGroupBy() {
301301
return this.groupPreference === 'none' ? null : 'groupById';

0 commit comments

Comments
 (0)