2024-07-23 12:43:30 +02:00
|
|
|
import * as React from "bloatless-react";
|
|
|
|
|
|
2024-07-23 13:09:46 +02:00
|
|
|
import { BoardSettingsModal } from "../Modals/boardSettingsModal";
|
2024-07-23 12:43:30 +02:00
|
|
|
import BoardViewModel from "../../ViewModel/Pages/boardViewModel";
|
2024-07-23 13:09:46 +02:00
|
|
|
import { translations } from "../translations";
|
2024-07-23 12:43:30 +02:00
|
|
|
|
|
|
|
|
export function BoardPage(boardViewModel: BoardViewModel) {
|
2024-07-23 13:09:46 +02:00
|
|
|
return (
|
|
|
|
|
<div class="pane">
|
|
|
|
|
<div class="toolbar">
|
2024-07-23 14:53:00 +02:00
|
|
|
<span>
|
|
|
|
|
<button
|
|
|
|
|
class="ghost"
|
|
|
|
|
aria-label={translations.chatPage.task.closeBoard}
|
|
|
|
|
on:click={boardViewModel.close}
|
|
|
|
|
>
|
|
|
|
|
<span class="icon">arrow_back</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
class="ghost"
|
|
|
|
|
aria-label={translations.chatPage.task.boardSettingsHeadline}
|
|
|
|
|
on:click={boardViewModel.showSettings}
|
|
|
|
|
>
|
|
|
|
|
<span class="icon">settings</span>
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
2024-07-23 15:25:16 +02:00
|
|
|
<span class="scroll-h ribbon">
|
|
|
|
|
<button
|
|
|
|
|
class="ghost ribbon-button"
|
|
|
|
|
aria-label={translations.chatPage.task.listViewButtonAudioLabel}
|
|
|
|
|
on:click={boardViewModel.close}
|
|
|
|
|
>
|
|
|
|
|
<span class="icon">view_list</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
class="ghost ribbon-button"
|
|
|
|
|
aria-label={translations.chatPage.task.kanbanViewButtonAudioLabel}
|
|
|
|
|
on:click={boardViewModel.showSettings}
|
|
|
|
|
>
|
|
|
|
|
<span class="icon">view_kanban</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
class="ghost ribbon-button"
|
|
|
|
|
aria-label={translations.chatPage.task.statusViewButtonAudioLabel}
|
|
|
|
|
on:click={boardViewModel.showSettings}
|
|
|
|
|
>
|
|
|
|
|
<span class="icon">grid_view</span>
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
<span>
|
|
|
|
|
<button
|
|
|
|
|
class="ghost"
|
|
|
|
|
aria-label={translations.chatPage.task.filterTasksButtonAudioLabel}
|
|
|
|
|
on:click={boardViewModel.showFilterModal}
|
|
|
|
|
>
|
|
|
|
|
<span class="icon">filter_alt</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
class="primary"
|
|
|
|
|
aria-label={translations.chatPage.task.createTaskButtonAudioLabel}
|
|
|
|
|
on:click={boardViewModel.showNewTaskModal}
|
|
|
|
|
>
|
|
|
|
|
<span class="icon">add</span>
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
2024-07-23 13:09:46 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="content"></div>
|
|
|
|
|
|
|
|
|
|
{BoardSettingsModal(boardViewModel)}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2024-07-23 12:43:30 +02:00
|
|
|
}
|