-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add settings page * Rename function * Add if statements where merge requests are run * Fix loading issues text and pull request bug * Reformat * (#42) Remove not used features * Add board version env * Fix lint * #40 persisted MR settings * fix syntax --------- Co-authored-by: Tigran Muradyan <muradyan@amediateka.ru> Co-authored-by: Konstantin Polsky <kpolsky@ntv.ru>
- Loading branch information
1 parent
f19a29a
commit 8f17d10
Showing
12 changed files
with
123 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<script> | ||
import { | ||
Container, | ||
Styles | ||
} from "sveltestrap"; | ||
import Navbar from "../layout/Navbar.svelte"; | ||
import Footer from "../layout/Footer.svelte"; | ||
import {settingsMergeRequests} from "../../store.js"; | ||
const handleChangeSettingGeneralMergeRequests = async (e) => { | ||
$settingsMergeRequests = e.target.checked; | ||
} | ||
</script> | ||
|
||
<Styles/> | ||
|
||
<Navbar></Navbar> | ||
|
||
<Container fluid class="py-4 bg-white"> | ||
<div class="col-12 col-lg-10 col-xl-8 mx-auto"> | ||
<h2 class="h3 mb-4 page-title">Settings</h2> | ||
<div class="my-4"> | ||
<ul class="nav nav-tabs mb-4" id="myTab" role="tablist"> | ||
<li class="nav-item"> | ||
<a class="nav-link active" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" | ||
aria-selected="false">General</a> | ||
</li> | ||
</ul> | ||
<h5 class="mb-0 mt-5">Feature Settings</h5> | ||
<p>Select features you want to enable.</p> | ||
<div class="list-group mb-5"> | ||
<div class="list-group-item"> | ||
<div class="row align-items-center"> | ||
<div class="col"> | ||
<strong class="mb-0">Merge Requests</strong> | ||
<p class="text-muted mb-0">Include merge requests in kanban desk.</p> | ||
</div> | ||
<div class="col-auto"> | ||
<input | ||
type="checkbox" | ||
checked={$settingsMergeRequests == "true"} | ||
on:change={handleChangeSettingGeneralMergeRequests}/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</Container> | ||
|
||
<Footer></Footer> | ||
|
||
<style> | ||
h2:focus-visible { | ||
outline: none; | ||
} | ||
input[type=checkbox] { | ||
width: 2rem; | ||
height: 2rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters