Skip to content

Commit

Permalink
Use AppSidebar
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <[email protected]>
  • Loading branch information
raimund-schluessler committed Aug 3, 2020
1 parent 4683c3b commit f9c62f6
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 353 deletions.
7 changes: 3 additions & 4 deletions css/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -823,10 +823,9 @@ $blue_due: #4271a6; // due dates and low importance
}

/**
* rules for app-sidebar
*/

#app-sidebar {
* rules for app-sidebar
*/
.app-sidebar {
.flex-container {
display: flex;
flex-direction: column;
Expand Down
6 changes: 2 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
<RouterView />
</AppContent>

<div id="app-sidebar" :class="{disappear: $route.params.taskId === undefined}">
<RouterView name="details" />
</div>
<RouterView name="details" :class="{disappear: $route.params.taskId === undefined}" />
</Content>
</template>

Expand Down Expand Up @@ -104,7 +102,7 @@ export default {
if (!($event.target.closest('.reactive') || $event.target.classList.contains('reactive')
|| $event.target.classList.contains('mx-btn') // For some reason the click-outside handlers fire for the datepicker month and year buttons!?
)
&& !$event.target.closest('#app-sidebar') && this.$route.params.taskId) {
&& !$event.target.closest('.app-sidebar') && this.$route.params.taskId) {
if (this.$route.params.calendarId) {
this.$router.push({ name: 'calendars', params: { calendarId: this.$route.params.calendarId } })
} else {
Expand Down
Loading

0 comments on commit f9c62f6

Please sign in to comment.