Skip to content

Commit

Permalink
Merge pull request #11744 from rtibbles/coach_app_nav_bar
Browse files Browse the repository at this point in the history
Remove coach page specific sub nav toggling.
  • Loading branch information
rtibbles authored Jan 19, 2024
2 parents 0f182a3 + bd4d77c commit a579274
Show file tree
Hide file tree
Showing 27 changed files with 2 additions and 37 deletions.
13 changes: 2 additions & 11 deletions kolibri/plugins/coach/assets/src/views/CoachAppBarPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
:authorizedRole="authorizedRole"
>
<AppBarPage :title="appBarTitle || defaultAppBarTitle">
<template
v-if="showSubNav && !isAppContext"
#subNav
>
<template #subNav>
<TopNavbar />
</template>
<div class="coach-main">
Expand All @@ -24,7 +21,7 @@

<script>
import { mapState, mapGetters } from 'vuex';
import { mapState } from 'vuex';
import AppBarPage from 'kolibri.coreVue.components.AppBarPage';
import NotificationsRoot from 'kolibri.coreVue.components.NotificationsRoot';
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
Expand Down Expand Up @@ -78,17 +75,11 @@
type: String,
default: null,
},
showSubNav: {
type: Boolean,
required: false,
default: false,
},
},
computed: {
...mapState({
error: state => state.core.error,
}),
...mapGetters(['isAppContext']),
},
$trs: {
kolibriTitleMessage: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>
<KPageContainer>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KGrid gutter="16">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>
<KPageContainer>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>
<KPageContainer>
<PlanHeader :activeTabId="PlanTabs.GROUPS" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KGrid v-if="!loading">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="$store.getters.userIsAuthorizedForCoach"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KGrid gutter="16">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KGrid gutter="16">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KGrid gutter="16">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<CoachAppBarPage
:authorized="userIsAuthorized"
authorizedRole="adminOrCoach"
:showSubNav="true"
>

<KPageContainer :class="{ 'print': $isPrint }">
Expand Down

0 comments on commit a579274

Please sign in to comment.