use v-click-outside-x instead of v-click-outside

looks like v-click-outside doesn't work on mobile (tested with chrome and
firefox on android) since the dropdown menu is closed also when clicking a menu
entry.
This commit is contained in:
Simone Gotti 2019-07-13 00:08:02 +02:00
parent 3ffd81cc56
commit eb2453d46f
9 changed files with 30 additions and 30 deletions

8
package-lock.json generated
View File

@ -11813,10 +11813,10 @@
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
"dev": true "dev": true
}, },
"v-click-outside": { "v-click-outside-x": {
"version": "2.1.3", "version": "4.0.9",
"resolved": "https://registry.npmjs.org/v-click-outside/-/v-click-outside-2.1.3.tgz", "resolved": "https://registry.npmjs.org/v-click-outside-x/-/v-click-outside-x-4.0.9.tgz",
"integrity": "sha512-8d11/fN+nkSPeor87K8OtGc/lDbRwbUiFwdzxQEGidlXt6eko3gIgRM7ghgi4p/zohF3Ja9hAaydAajV3gnlPQ==" "integrity": "sha512-sfbhSCugCQ4Bdi7aIT+Tv/0BgB5SPMDR+ogUhQJJBbsVVPijZJ+Z5lnZhi1sNI5D2vb3CoI0qhDNcTPo+V0SNA=="
}, },
"validate-npm-package-license": { "validate-npm-package-license": {
"version": "3.0.4", "version": "3.0.4",

View File

@ -13,7 +13,7 @@
"ansi_up": "^4.0.3", "ansi_up": "^4.0.3",
"moment": "^2.23.0", "moment": "^2.23.0",
"moment-duration-format": "^2.3.2", "moment-duration-format": "^2.3.2",
"v-click-outside": "^2.1.3", "v-click-outside-x": "^4.0.9",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.0.7", "vue-router": "^3.0.7",
"vue2-filters": "^0.6.0", "vue2-filters": "^0.6.0",

View File

@ -7,7 +7,7 @@
class="font-semibold flex items-center flex-shrink-0 text-xl tracking-tight" class="font-semibold flex items-center flex-shrink-0 text-xl tracking-tight"
to="/" to="/"
> >
<img class="w-10 mr-2" src="/img/agola-logo-circle.svg"> <img class="w-10 mr-2" src="/img/agola-logo-circle.svg" />
Agola Agola
</router-link> </router-link>
</div> </div>
@ -22,7 +22,7 @@
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>Menu</title> <title>Menu</title>
<path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"></path> <path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z" />
</svg> </svg>
</button> </button>
</div> </div>
@ -75,7 +75,7 @@
<b>{{user.username}}</b> <b>{{user.username}}</b>
</li> </li>
<li> <li>
<hr class="navbar-divider"> <hr class="navbar-divider" />
</li> </li>
<li> <li>
<router-link <router-link
@ -125,7 +125,7 @@
<script> <script>
import vClickOutside from "v-click-outside"; import * as vClickOutside from "v-click-outside-x";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";

View File

@ -40,7 +40,7 @@
</template> </template>
<script> <script>
import vClickOutside from "v-click-outside"; import * as vClickOutside from "v-click-outside-x";
export default { export default {
components: {}, components: {},

View File

@ -138,7 +138,7 @@
</template> </template>
<script> <script>
import vClickOutside from "v-click-outside"; import * as vClickOutside from "v-click-outside-x";
import { cancelRun, stopRun, restartRun } from "@/util/data.js"; import { cancelRun, stopRun, restartRun } from "@/util/data.js";
import { userDirectRunLink, projectRunLink } from "@/util/link.js"; import { userDirectRunLink, projectRunLink } from "@/util/link.js";

View File

@ -110,7 +110,7 @@
<script> <script>
import vClickOutside from "v-click-outside"; import * as vClickOutside from "v-click-outside-x";
import { import {
ownerLink, ownerLink,

View File

@ -137,7 +137,7 @@
<script> <script>
import vClickOutside from "v-click-outside"; import * as vClickOutside from "v-click-outside-x";
import { import {
projectLink, projectLink,

View File

@ -75,7 +75,7 @@
<script> <script>
import vClickOutside from "v-click-outside"; import * as vClickOutside from "v-click-outside-x";
import { import {
projectGroupProjectsLink, projectGroupProjectsLink,

View File

@ -134,7 +134,7 @@
</template> </template>
<script> <script>
import vClickOutside from "v-click-outside"; import * as vClickOutside from "v-click-outside-x";
import { import {
ownerLink, ownerLink,