🐛 Fix current project when having multiple

This commit is contained in:
brunosimon
2017-12-25 18:15:59 +01:00
parent eeb0ce215a
commit 2c3fe48cfc
20 changed files with 42 additions and 6 deletions
+2 -6
View File
@@ -24,13 +24,9 @@ export default {
// No current project // No current project
else else
{ {
// Set first project as current
const projectKeys = Object.keys(state.all) const projectKeys = Object.keys(state.all)
state.current = state.all[projectKeys[0]]
// If only one project, set has current
if(projectKeys.length === 1)
{
state.current = state.all[projectKeys[0]]
}
} }
}, },

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

+21
View File
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mon super site</title>
</head>
<body>
<section>
<h1>Bonjour</h1>
<form action="#">
<input type="text">
</form>
<footer>
<a href="#">Contact</a>
</footer>
</section>
</body>
</html>
+19
View File
@@ -0,0 +1,19 @@
<?php
/**
* Test
*/
class ClassName extends AnotherClass
{
function __construct( argument )
{
// code...
}
function test()
{
}
}