Skip to content

Commit

Permalink
Hide billing from menu
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFomina committed Nov 17, 2024
1 parent 97f9058 commit f0e9ada
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/workspace/settings/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<!-- {{ $t('workspaces.settings.billing.title') }}-->
<!-- </router-link>-->
<router-link
v-if="isAdmin"
v-if="isAdmin && shouldShowBilling"
class="settings-window__menu-item workspace-settings__menu-item"
:to="{ name: 'workspace-settings-billing', params: {workspaceId: workspace.id} }"
>
Expand Down Expand Up @@ -119,6 +119,13 @@ export default Vue.extend({
return member ? member.isAdmin : false;
},
/**
* Check if billing button should be visible in menu
*/
shouldShowBilling(): boolean {
return false;
}
},
async created(): Promise<void> {
const workspaceId = this.$route.params.workspaceId;
Expand Down

0 comments on commit f0e9ada

Please sign in to comment.