Skip to content
Snippets Groups Projects

Ability to show all week days

Open Artem Veshev requested to merge Flowseal/volga-app:F-65 into dev
Compare and
6 files
+ 74
18
Preferences
File browser
Compare changes
@@ -8,10 +8,10 @@
import { customSchedule } from "../stores";
export let scheduleDay;
export let weekTypeName;
export let updateSchedule;
let addingEvent = false;
$: weekTypeName = scheduleDay?.events[0].weekTypeName;
$: weekColor = weekTypeName === "Синяя неделя" ? "blue-text" : "red-text";
let description = "", fio = "", building = "", room = "", timeBegin = "00:00", timeEnd = "00:00", typeWorkName;
@@ -126,8 +126,10 @@
<!--New Event Button-->
{#if !addingEvent}
<div class="row max">
<button class="circle large hidden"/> <!-- Align button to event div -->
<button class="transparent border large" on:click={() => {addingEvent = true}}>
{#if scheduleDay.events.length > 0}
<button class="circle large hidden"/> <!-- Align button to event div -->
{/if}
<button class={"transparent border large " + (scheduleDay.events.length === 0 ? "max" : "")} on:click={() => {addingEvent = true}}>
<MIcon class="large">calendar_add_on</MIcon>
<h5 class="padding">{$_('customScheduleSheet.newEvent', {default: 'Add'})}</h5>
</button>